git-annex/Remote/Helper
Joey Hess f6cf2dec4c
disk free checking for unsized keys
Improve disk free space checking when transferring unsized keys to
local git remotes. Since the size of the object file is known, can
check that instead.

Getting unsized keys from local git remotes does not check the actual
object size. It would be harder to handle that direction because the size
check is run locally, before anything involving the remote is done. So it
doesn't know the size of the file on the remote.

Also, transferring unsized keys to other remotes, including ssh remotes and
p2p remotes don't do disk size checking for unsized keys. This would need a
change in protocol.

(It does seem like it would be possible to implement the same thing for
directory special remotes though.)

In some sense, it might be better to not ever do disk free checking for
unsized keys, than to do it only sometimes. A user might notice this
direction working and consider it a bug that the other direction does not.
On the other hand, disk reserve checking is not implemented for most
special remotes at all, and yet it is implemented for a few, which is also
inconsistent, but best effort. And so doing this best effort seems to make
some sense. Fundamentally, if the user wants the size to always be checked,
they should not use unsized keys.

Sponsored-by: Brock Spratlen on Patreon
2024-01-16 14:29:10 -04:00
..
Chunked filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
AWS.hs correct obsolete comment 2023-01-31 14:42:26 -04:00
Chunked.hs support annex.shared-sop-command for encryption=shared 2024-01-12 13:31:18 -04:00
Encryptable.hs more groundwork for StatelessOpenPGP 2024-01-12 13:11:36 -04:00
ExportImport.hs speed up very first tree import by 25% 2023-06-02 13:30:30 -04:00
Git.hs implement Unavilable for gcrypt 2023-08-16 15:54:54 -04:00
Hooks.hs avoid annexFileMode special case 2023-04-27 15:58:37 -04:00
Http.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Messages.hs filter out control characters in all other Messages 2023-04-11 12:58:01 -04:00
P2P.hs disk free checking for unsized keys 2024-01-16 14:29:10 -04:00
Path.hs implement Unavilable for borg bup ddar directory rsync 2023-08-16 15:48:09 -04:00
ReadOnly.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
Special.hs disk free checking for unsized keys 2024-01-16 14:29:10 -04:00
Ssh.hs filter out control characters in all other Messages 2023-04-11 12:58:01 -04:00
ThirdPartyPopulated.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00