Skip to content

Support for digesting large files (> 4 GiB)

Andrey Smirnov barebox 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6treewide: Introduce MAP_FAILED and replace ad-hoc constants with itcommands/go.c commands/md.c common/ratp/md.c +3 more+7 -50 replies
2/6crypto: digest: Remove unused variablecrypto/digest.c+0 -20 replies
3/6crypto: digest: Replace 4096 with PAGE_SIZEcrypto/digest.c+2 -20 replies
4/6crypto: digest: Split memory vs. file code into separate functionscrypto/digest.c+70 -482 replies
5/6commands: digest: Use MAX_LFS_FILESIZE instead of ~0commands/digest.c+2 -10 replies
6/6crypto: digest: Change the signature of digest_file_window()crypto/digest.c include/digest.h+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Support for digesting large files (> 4 GiB)

Everyone:

This is the series of patches I made while to fix incorrect behaviour while trying to md5sum a 128 GiB file. Most of the patches should be pretty straightforward. If "crypto: digest: Split memory vs. file code into separate functions" is too controversial it can be dropped.

Feedback is welcome!

Thanks,
Andrey Smirnov

Andrey Smirnov (6):
treewide: Introduce MAP_FAILED and replace ad-hoc constants with it
crypto: digest: Remove unused variable
crypto: digest: Replace 4096 with PAGE_SIZE
crypto: digest: Split memory vs. file code into separate functions
commands: digest: Use MAX_LFS_FILESIZE instead of ~0
crypto: digest: Change the signature of digest_file_window()

 commands/digest.c |   3 +-
 commands/go.c     |   2 +-
 commands/md.c     |   2 +-
 common/ratp/md.c  |   2 +-
 crypto/digest.c   | 122 +++++++++++++++++++++++++++-------------------
 fs/fs.c           |   2 +-
 include/digest.h  |   2 +-
 include/fs.h      |   2 +
 8 files changed, 80 insertions(+), 57 deletions(-)
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox