diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-13 12:09:38 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-13 12:09:38 -0400 |
commit | d741268533962a848e326250aab015a579e29c47 (patch) | |
tree | aef465a90464f474b06511f59f59c7d0c6434393 | |
parent | 3814524bfd3d0e6ba8206b37a3db38fe9ab327f1 (diff) | |
parent | d205ed33a8893923802dc526fdef5cf2e2623336 (diff) |
Merge branch 'master' of ssh://git-annex.branchable.com
2 files changed, 51 insertions, 0 deletions
diff --git a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn new file mode 100644 index 000000000..8d6e304e4 --- /dev/null +++ b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn @@ -0,0 +1,43 @@ +### Please describe the problem. + +ATM I am chasing a problem that somehow one key "mutated" although I do not remember doing anything malicious, file seems to be also not writable (itself). +So I decided to fsck, and only spotted a problem when some warnings started to appear that I am not the owner of the (key)file. So I looked inside and found +that all key dirs are writeable BUT annex complains only about the ones where it can't change permissions since they don't belong to me + + +### What version of git-annex are you using? On what operating system? + +6.20170815+gitg22da64d0f-1~ndall+1 + +### Please provide any additional information below. + +[[!format sh """ +$> for f in sub00{1,3}/anatomy/highres001.nii.gz; do ls -ld $(realpath $f | xargs dirname ); git annex fsck $f; done +drwxrws--- 2 yoh famface 3 May 12 15:15 /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ +fsck sub001/anatomy/highres001.nii.gz (checksum...) ok +(recording state in git...) +drwxrwsr-x 2 contematto famface 3 Jul 13 2015 /data/famface/openfmri/data/.git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/ +fsck sub003/anatomy/highres001.nii.gz + ** Unable to set correct write mode for .git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz ; perhaps you don't own that file +(checksum...) ok +(recording state in git...) + +# thought to see may be annex would complain then!? +$> chmod a+rwx /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ + +$> for f in sub00{1,3}/anatomy/highres001.nii.gz; do ls -ld $(realpath $f | xargs dirname ); git annex fsck $f; done +drwxrwsrwx 2 yoh famface 3 May 12 15:15 /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ +fsck sub001/anatomy/highres001.nii.gz (checksum...) ok +(recording state in git...) +drwxrwsr-x 2 contematto famface 3 Jul 13 2015 /data/famface/openfmri/data/.git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/ +fsck sub003/anatomy/highres001.nii.gz + ** Unable to set correct write mode for .git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz ; perhaps you don't own that file +(checksum...) ok +(recording state in git...) + +"""]] + +~~btw -- the same wrong permissions on the upper hash directories, and they do not get fixed/complained about at all (that is ok)~~ + + +[[!meta author=yoh]] diff --git a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment new file mode 100644 index 000000000..92fbb3ba5 --- /dev/null +++ b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="comment 1" + date="2017-09-13T14:32:57Z" + content=""" +also note, that even though I am not the owner, I should have sufficient privileges to modify (member of the group(s))! +"""]] |