GNU bug report logs - #79267
cp --sparse=auto heuristic fails on a squashfs mounted drive.

Previous Next

Package: coreutils;

Reported by: Jeremy Allison <jallison <at> ciq.com>

Date: Tue, 19 Aug 2025 02:39:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Phillip Lougher <phillip <at> squashfs.org.uk>
Cc: jallison <at> ciq.com, 79267 <at> debbugs.gnu.org
Subject: bug#79267: cp --sparse=auto heuristic fails on a squashfs mounted drive.
Date: Sat, 23 Aug 2025 09:46:38 -0700
On 2025-08-22 19:11, Phillip Lougher wrote:
> any Squashfs SEEK_HOLE/SEEK_DATA implementation will not
> behave like other Linux filesystems, because it won't report sparseness
> at the 4K granularity that most people or programs will expect it to.

Coreutils doesn't expect 4 KiB granularity for LSEEK_DATA+LSEEK_HOLE, 
and I don't know of any programs that do expect it. I fail to see why 
squashfs should penalize the performance of core programs like 'cp' 
merely because some (which?) programs are poorly written.




This bug report was last modified 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.