summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-05-11 12:04:59 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-05-11 12:04:59 -0400
commite8a55de25e4c498a00ec6fb6c760876a20d846fe (patch)
treee0a2cdbf5c2e6adfa69571f702207fec4494ae2b
parent61442e48c753560cb055eee5aa6b93417a2b273c (diff)
comment
-rw-r--r--doc/forum/Lots_of_4k_symlinks/comment_7_bd6b81815e5888c26d7a8a96e565519e._comment23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/forum/Lots_of_4k_symlinks/comment_7_bd6b81815e5888c26d7a8a96e565519e._comment b/doc/forum/Lots_of_4k_symlinks/comment_7_bd6b81815e5888c26d7a8a96e565519e._comment
new file mode 100644
index 000000000..148778f02
--- /dev/null
+++ b/doc/forum/Lots_of_4k_symlinks/comment_7_bd6b81815e5888c26d7a8a96e565519e._comment
@@ -0,0 +1,23 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 7"""
+ date="2017-05-11T15:57:10Z"
+ content="""
+Note that the analysis in my earlier comment assumes that the
+.git/annex/objects/xx/yy/key/ directory is removed. As long as those
+per-key directories are used, the symlinks cannot possibly be made short enough
+to pack.
+
+There have been some
+other requests for that (datalad requested it because all those per-key
+directories use disk space, add to the size of the git repo, and slow down
+traversal). However, git-annex relies on those directories to prevent
+accidential rm -rf deleting the annexed objects and prevent some symlink
+following programs from editing/corrupting the annexed objects (the
+per-key directories are left mode 400 most of the time). So it would be
+fairly complicated to add a tuning that eliminated those while locking
+down the permissions some other way (eg, making the `yy` directories mode
+400 except when one or more thread/process needs to write to them), and since
+it would have to be a tuning, it would introduce a lot of conditional
+complexity into the code.
+"""]]