This commit is contained in:
gb@4a49bb1afcf3d183bba8f07297b0395808768c6c 2020-08-30 16:50:45 +00:00 committed by admin
parent 55c156a533
commit 358a20c5a0

View file

@ -0,0 +1,25 @@
Would it be possible to make `thin` work in locked mode? In other words, could locked mode use **hardlinks** instead symlinks then `thin` is set?
Such a combined mode would have all the benefits of locked mode (protection, easy-to-stop missing files) and of direct mode (no duplication of files). It would also (partially) solve the problems discussed in [[devblog/day_601__v7_default/]] and [[todo/symlinks_for_not-present_unlocked_files/]].
Here is an example of how this could work from the user prospective:
```
$ mkdir foobar && cd foobar/ && git init . && git annex init foobar
$ echo "aaaa" > a && echo "bbbb" > b
$ git config annex.thin true
$ git annex add a b
[...] ok
$ git annex sync
[...] ok
$ ls
a b # note: no symlinks
$ echo "foo" > a
bash: a: Permission denied
$ git annex drop --force a
$ ls
a@ b # note: symlink for missing file
```