aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-08-06 16:25:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2025-08-07 20:20:04 -0700
commit2f2adb294eb24e0754c2341fb3a699088956a673 (patch)
tree12e79b85c6e95679e2462bf26e8672c9b3f6ce84 /scripts/git-hooks/commit-msg
parentmaint: use consistent references to standard files in messages (diff)
downloadcoreutils-2f2adb294eb24e0754c2341fb3a699088956a673.tar.gz
coreutils-2f2adb294eb24e0754c2341fb3a699088956a673.zip
cp: --sparse=always was missing some holes
The sparse code assumed that st_blksize was the minimum hole size. However, st_blksize is an optimum I/O buffer size, not the file system fundamental block size. Use ST_NBLOCKSIZE instead; although it may underestimate the true block size that just slows ‘cp’ down a bit, without introducing bugs. * src/copy.c (sparse_copy): Arg scan_holes replaces the old hole_size arg. All callers changed. (lseek_copy): Remove hole_size arg; no longer needed. Caller changed.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions