Commit graph

53 commits

Author SHA1 Message Date
nick.guenther@e418ed3c763dff37995c2ed5da4232a7c6cee0a9
a42e76d89f Added a comment 2022-05-20 18:09:45 +00:00
Joey Hess
7f28f41c37
response 2022-05-20 13:17:44 -04:00
nick.guenther@e418ed3c763dff37995c2ed5da4232a7c6cee0a9
514f50e5be Added a comment: How to disable lockdown in bare repos? 2022-05-15 21:30:50 +00:00
Joey Hess
67245ae00f
fully specify the pointer file format
This format is designed to detect accidental appends, while having some
room for future expansion.

Detect when an unlocked file whose content is not present has gotten some
other content appended to it, and avoid treating it as a pointer file, so
that appended content will not be checked into git, but will be annexed
like any other file.

Dropped the max size of a pointer file down to 32kb, it was around 80 kb,
but without any good reason and certianly there are no valid pointer files
anywhere that are larger than 8kb, because it's just been specified what it
means for a pointer file with additional data even looks like.

I assume 32kb will be good enough for anyone. ;-) Really though, it needs
to be some smallish number, because that much of a file in git gets read
into memory when eg, catting pointer files. And since we have no use cases
for the extra lines of a pointer file yet, except possibly to add
some human-visible explanation that it is a git-annex pointer file, 32k
seems as reasonable an arbitrary number as anything. Increasing it would be
possible, eg to 64k, as long as users of such jumbo pointer files didn't
mind upgrading all their git-annex installations to one that supports the
new larger size.

Sponsored-by: Dartmouth College's Datalad project
2022-02-23 14:20:31 -04:00
Joey Hess
4b1b9d7a83
Added annex.freezecontent-command and annex.thawcontent-command configs
Freeze first sets the file perms, and then runs
freezecontent-command. Thaw runs thawcontent-command before
restoring file permissions. This is in case the freeze command
prevents changing file perms, as eg setting a file immutable does.
Also, changing file perms tends to mess up previously set ACLs.

git-annex init's probe for crippled filesystem uses them, so if file perms
don't work, but freezecontent-command manages to prevent write to a file,
it won't treat the filesystem as crippled.

When the the filesystem has been probed as crippled, the hooks are not
used, because there seems to be no point then; git-annex won't be relying
on locking annex objects down. Also, this avoids them being run when the
file perms have not been changed, in case they somehow rely on
git-annex's setting of the file perms in order to work.

Sponsored-by: Dartmouth College's Datalad project
2021-06-21 14:40:52 -04:00
Joey Hess
52e72f878e
expand 2020-07-03 14:42:04 -04:00
Joey Hess
a568302460
response 2020-02-20 16:26:52 -04:00
Joey Hess
30423f2b2d
response 2020-02-20 16:21:34 -04:00
https://christian.amsuess.com/chrysn
e07fbf936a Added a comment: Key character set 2019-12-10 10:27:58 +00:00
atrent
6d66e6a377 Added a comment: migrating... 2019-11-30 22:30:06 +00:00
Ilya_Shlyakhter
f8f3bd8eb4 Added a comment: hardlinking identical files in annex may break invariants 2019-11-30 21:36:38 +00:00
Ilya_Shlyakhter
78c2f2a973 Added a comment 2019-11-30 21:11:53 +00:00
atrent
955042a0bf Added a comment: no collisions 2019-11-30 20:37:00 +00:00
Ilya_Shlyakhter
e9ff2381bd Added a comment: same contents with different keys 2019-11-30 16:51:58 +00:00
atrent
d9b0481779 Added a comment: duplicate objects? 2019-11-30 14:04:17 +00:00
Ilya_Shlyakhter
072bc0dcee Added a comment: representing unlocked state of files 2019-09-19 18:02:31 +00:00
Ilya_Shlyakhter
d9fcc9c6cc added a hyperlink from key internals page to git-annex-examinekey 2019-04-24 17:18:33 +00:00
driusan@4d47e7deeb2f5d3846792d049ed06f96a0c3ca98
2599296a31 be more explicit about new hash format 2019-04-01 19:52:00 +00:00
Joey Hess
05de519d2c
update re field ordering 2019-01-11 16:51:54 -04:00
Ilya_Shlyakhter
62bbc15a8a Added a comment 2018-09-19 16:07:45 +00:00
Joey Hess
8cbe9b7dd3
fix typo 2018-07-19 13:11:09 -04:00
Joey Hess
a944549db9
response 2018-02-22 12:59:44 -04:00
Joey Hess
06454be3a7
remove duplicate comment 2018-02-22 12:55:13 -04:00
arseny-n@6aba76e573dcdf2fd9e033fb3132944c8466125a
1be68dd2f4 removed 2018-01-17 13:06:45 +00:00
arseny-n@6aba76e573dcdf2fd9e033fb3132944c8466125a
cd35b4a83d Added a comment: .git/annex/misctmp very large 2018-01-17 13:05:05 +00:00
arseny-n@6aba76e573dcdf2fd9e033fb3132944c8466125a
0a72d634fa Added a comment: .git/annex/misctmp very large 2018-01-17 13:04:52 +00:00
arseny-n@6aba76e573dcdf2fd9e033fb3132944c8466125a
7a4c12d692 Added a comment: .git/annex/misctmp very large 2018-01-17 13:04:40 +00:00
Edward Betts
0750913136
correct spelling mistakes 2017-02-12 17:30:23 -04:00
Joey Hess
fa4ac76d79 fix filename 2015-06-09 17:51:59 -04:00
Joey Hess
d185442382 remove .swp file 2015-06-09 17:51:10 -04:00
Joey Hess
0e4596de69 response 2015-06-09 16:33:35 -04:00
https://id.koumbit.net/anarcat
7002c1514a Added a comment: .git/annex/tmp third-party use? 2015-06-09 20:21:40 +00:00
giomasce
b17566d8bc Added a comment: Python implementation 2015-03-22 22:38:54 +00:00
Joey Hess
149d4bda61 comment 2015-02-17 17:53:08 -04:00
https://id.koumbit.net/anarcat
2865e9ff8b Added a comment: why md5sum? 2015-02-13 15:59:46 +00:00
Joey Hess
b953c60e06 comment 2015-02-04 13:16:25 -04:00
josch
ce4984dd01 Added a comment: any particular reason for the chosen characters for base32 encoding 2015-01-31 17:13:57 +00:00
https://www.google.com/accounts/o8/id?id=AItOawm_YXzEdPHzbSGVwtmTR7g1BqDtTnIBB5s
d92a1f7122 Added a comment: File immutability 2015-01-07 12:06:15 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnx8kHW66N3BqmkVpgtXDlYMvr8TJ5VvfY
231067df3e Added a comment 2014-12-04 20:26:47 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnLM6CIUo2loSFNTLPDdBgAEoz9ehP2hz8
2bf81cefd1 Added a comment: Having the write bit not set can cause problems with automated usage (e.g. build systems) 2014-12-02 23:16:57 +00:00
zardoz
3b660c5590 Added a comment 2014-09-15 10:34:36 +00:00
Joey Hess
8f93982df6 use same hash directories for chunked key as are used for its parent
This avoids a proliferation of hash directories when using new-style
chunking, and should improve performance since chunks are accessed
in sequence and so should have a common locality.

Of course, when a chunked key is encrypted, its hash directories have no
relation to the parent key.

This commit was sponsored by Christian Kellermann.
2014-07-25 16:09:23 -04:00
Joey Hess
d751591ac8 add chunk metadata to Key
Added new fields for chunk number, and chunk size. These will not appear
in normal keys ever, but will be used for chunked data stored on special
remotes.

This commit was sponsored by Jouni K Seppanen.
2014-07-24 13:36:23 -04:00
Joey Hess
9e472c9c59 clarify field order reqirement 2014-07-24 12:54:29 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnlotDRSLW2JVXY3SLSwhrcHteqUHhTtoY
f3a70d30a3 Added a comment 2014-01-31 00:45:48 +00:00
Joey Hess
cc24f1a376 note 2013-12-17 13:26:38 -04:00
Joey Hess
2b5b4dcd78 Add plumbing-level lookupkey examinekey command.
find --format: Added hashdirlower, hashdirmixed, keyname, and mtime format
variables.
2013-12-15 14:52:09 -04:00
http://joeyh.name/
c2b813d193 Added a comment 2013-11-16 17:23:03 +00:00
stoile
34e70990e0 Added a comment: tmp missing 2013-11-16 12:16:48 +00:00
Joey Hess
70f3f22d8c some thoughts for madduck 2013-11-04 14:34:34 -04:00