]> dgit.raspbian.org Git - git-annex.git/commitdiff
response
authorJoey Hess <joeyh@joeyh.name>
Mon, 21 Oct 2024 19:03:55 +0000 (15:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 21 Oct 2024 19:03:55 +0000 (15:03 -0400)
doc/git-annex-fsck/comment_3_48a3a7c41939eddfa6e868ce10c8572b._comment [new file with mode: 0644]

diff --git a/doc/git-annex-fsck/comment_3_48a3a7c41939eddfa6e868ce10c8572b._comment b/doc/git-annex-fsck/comment_3_48a3a7c41939eddfa6e868ce10c8572b._comment
new file mode 100644 (file)
index 0000000..3c8fe7e
--- /dev/null
@@ -0,0 +1,17 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""Re: numcopies & force-trusting is ignored by fsck on readonly directory remotes?"""
+ date="2024-10-21T18:54:55Z"
+ content="""
+importtree=yes remotes are always untrusted. The reason is that
+something else is assumed to be writing to those remotes, which is what
+populates them with files. And that could delete or change any file at any
+time. So if git-annex didn't untrust the remote, and relied on it to hold
+the only copy of a file, such a change would cause data loss.
+
+There would need to be a new config setting to add the concept of
+guaranteed readonly importtree=yes remotes.
+
+git-annex does not allow --numcopies to be set to 0 as that can cause data
+loss.
+"""]]