Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
762fd5ae5d
7 changed files with 115 additions and 1 deletions
|
@ -0,0 +1,38 @@
|
|||
### Please describe the problem.
|
||||
Running fsck on a remote completely drops the file
|
||||
|
||||
### What steps will reproduce the problem?
|
||||
* Create a standard git annex repo
|
||||
* Set up another remote (I used a standard git annex repo) in it
|
||||
* Corrupt a file in the remote repo. Changing one byte is sufficient for this
|
||||
* Run `git-annex fsck`
|
||||
* git-annex will notice the corruption and completely drop the file from the remote
|
||||
|
||||
I expect git-annex to never drop data unless specified as also mentioned [here](https://git-annex.branchable.com/walkthrough/fsck__58___when_things_go_wrong)
|
||||
|
||||
I would rather look at the corrupted file myself and figure out the best course of action instead of losing it completely.
|
||||
|
||||
At this point, I'm working around it by not running fsck on remotes, since local fsck seems to work as expected.
|
||||
|
||||
|
||||
### What version of git-annex are you using? On what operating system?
|
||||
8.20200309, Mac
|
||||
|
||||
|
||||
### Please provide any additional information below.
|
||||
|
||||
~~~
|
||||
$ ga fsck --from=origin
|
||||
fsck dir1/dir1_file1 (checksum...) ok
|
||||
fsck dir1/dir1_file2 (checksum...) ok
|
||||
fsck file1 (checksum...)
|
||||
file1: Bad file content; dropped from origin
|
||||
failed
|
||||
fsck file2 (checksum...) ok
|
||||
(recording state in git...)
|
||||
git-annex: fsck: 1 failed
|
||||
~~~
|
||||
|
||||
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
|
||||
Yes it stores most of my data
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://dead-doomer.livejournal.com/"
|
||||
subject="comment 4"
|
||||
date="2020-06-17T02:41:51Z"
|
||||
content="""
|
||||
>Normally with a fairly large number of files like a thousand or so, this step takes less than 1 second..
|
||||
|
||||
Well, I wouldn't need any specialised synchronisation tool if I had 1000 files.
|
||||
|
||||
My \"sdcard\", which is not really an SD card (Android lying as always), has ~400 000 files, out of which a huge load are garbage files created by poorly written apps which you cannot avoid, like a bank-client, which are unmanageable from a phone itself.
|
||||
|
||||
I hoped to pull them to the laptop, do the heavy lifting of sorting that out on the laptop, using fdupes, rdfind, find/grep, and such, delete the rubbish, and push it back.
|
||||
|
||||
It's not an \"exotic\" setup at all, I don't even have my phone rooted. In fact for about a year or two a phone with 128Gb of storage is fairly affordable. And it's not really possible to stop apps from being garbage.
|
||||
"""]]
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="strmd"
|
||||
avatar="http://cdn.libravatar.org/avatar/035707b9756129bbdea6b36a7f7b38d3"
|
||||
subject="comment 2"
|
||||
date="2020-06-17T19:34:13Z"
|
||||
content="""
|
||||
Thanks for your reply, Joey. I hadn't caught that it was an open todo, which of course explains it.
|
||||
|
||||
This is the missing piece of the puzzle in a valued workflow of mine. After being constantly amazed by what git-annex enables me to do, it's about time I head over to Patreon to help see it realized (in due time, of course).
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="Ilya_Shlyakhter"
|
||||
avatar="http://cdn.libravatar.org/avatar/1647044369aa7747829c38b9dcc84df0"
|
||||
subject="building the standalone distribution"
|
||||
date="2020-06-17T14:22:34Z"
|
||||
content="""
|
||||
Is there a way to build the standalone distribution from the tarballs posted on Hackage?
|
||||
"""]]
|
|
@ -19,7 +19,7 @@ already.
|
|||
|
||||
Then, in that repository, set up an adb special remote:
|
||||
|
||||
initremote android type=adb androiddirectory=/sdcard encryption=none exporttree=yes importtree=yes
|
||||
git-annex initremote android type=adb androiddirectory=/sdcard encryption=none exporttree=yes importtree=yes
|
||||
|
||||
The above example syncs with the /sdcard directory of the
|
||||
Android device. That can be a lot of files, so you may want a more
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://dead-doomer.livejournal.com/"
|
||||
subject="comment 4"
|
||||
date="2020-06-17T01:13:46Z"
|
||||
content="""
|
||||
Well, how would I know that that was significant? I resumed the import after interrupting it and let it run till it finished (several days actually).
|
||||
|
||||
In fact, I let \"import\" run several times till the end, the first time taking a lot of time, and the next ones taking ~10 minutes each.
|
||||
|
||||
Indeed, there seems to be no android_cable/master branch
|
||||
|
||||
```
|
||||
|
||||
$ git --no-pager branch -ra
|
||||
git-annex
|
||||
synced/master
|
||||
|
||||
```
|
||||
|
||||
I tried to create the branch manually, but there seems to be no `git-annex branch`.
|
||||
|
||||
In addition, this post is easily googleable, whereas \"forum\" is not. I believe that documenting a typical-of-the-typical issue that a user may encounter at the place which if the point of the first consultation is fairly useful.
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,19 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://dead-doomer.livejournal.com/"
|
||||
subject="comment 5"
|
||||
date="2020-06-17T06:42:53Z"
|
||||
content="""
|
||||
How do I manually create this android_cable/master remote branch?
|
||||
|
||||
For the sake of testing, I created another remote on the same smartphone, and indeed, if \"import\" finishes in one try, there is a
|
||||
|
||||
```
|
||||
|
||||
$ cat refs/remotes/android_test_cable/master
|
||||
8d7ada85897ef7df05bcdf1f2464ca678e03bd3b
|
||||
|
||||
```
|
||||
|
||||
How do I find an object that corresponds to the original `android_cable` special remote?
|
||||
|
||||
"""]]
|
Loading…
Reference in a new issue