File: git-annex_does_not_protect_files_on_NTFS-Fuse.mdwn

package info (click to toggle)
git-annex 6.20170101-1%2Bdeb9u2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 50,088 kB
  • sloc: haskell: 53,116; sh: 1,582; ansic: 341; makefile: 292; perl: 144
file content (8 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
I've read that git-annex probes the host filesystem to determine whether it has the necessary features for an indirect annex. Indirect annexes are supposed to protect annexed files from accidental editing:

    # echo oops > my_cool_big_file
    bash: my_cool_big_file: Permission denied

I have an NTFS drive to share files between my Windows and Linux systems (dual boot). On Linux fuse sets the file permissions to rwx for the user and nothing for the rest, and this cannot be changed. Files in the annex can be modified as in the above example.

If git-annex detects whether a fs can handle indirect annexes or not, I suggest checking for this case if possible.