From 4eefcf2c75405c5b2d19d58268f0de2b4262f479 Mon Sep 17 00:00:00 2001 From: "asakurareiko@f3d908c71c009580228b264f63f21c7274df7476" Date: Sat, 16 Oct 2021 14:45:43 +0000 Subject: [PATCH] --- doc/todo/More_space_savings_for_annex.thin.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/todo/More_space_savings_for_annex.thin.mdwn diff --git a/doc/todo/More_space_savings_for_annex.thin.mdwn b/doc/todo/More_space_savings_for_annex.thin.mdwn new file mode 100644 index 0000000000..a852dd5304 --- /dev/null +++ b/doc/todo/More_space_savings_for_annex.thin.mdwn @@ -0,0 +1,11 @@ +Currently with `annex.thin=true`, only one copy will be hardlinked so that duplicate copies do not get silently modified. It would be good to have an option such as `annex.thinmode` for alternative ways of unlocking files, especially for cases when all files need to be kept unlocked. + +1. `annex.thinmode=forcehardlink` + + In some cases most of the files in the repository will never be modified, and if a file does need to be modified, the hardlink can be first broken by making a copy. This can save a lot of space if git-annex is also used for file level deduplication. + +2. `annex.thinmode=reflink` + + For some copy-on-write filesystems such as BTRFS, reflink copies can be made, such as with `cp --reflink`. This both saves space and also prevents files in .git/annex/objects from being modified. + +git-annex-fix can be used to apply these settings to existing repositories. -- 2.30.2