GNU bug report logs - #21942
Files with incorrect file sizes

Previous Next

Package: diffutils;

Reported by: Stephan Müller <fruktopus <at> gmail.com>

Date: Tue, 17 Nov 2015 17:44:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 21942 <at> debbugs.gnu.org (full text, mbox):

From: Stephan Müller <fruktopus <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Jim Meyering <jim <at> meyering.net>, 21942 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#21942: bug#21942: Files with incorrect file
 sizes
Date: Sat, 21 Nov 2015 12:33:12 +0100
Am Fri, 20 Nov 2015 14:39:57 -0800
schrieb Paul Eggert <eggert <at> cs.ucla.edu>:
> I'd rather avoid a flag. User-visible complexity has a cost, and
> we're better off keeping things simple.
> 
> Is there some easy way to tell whether we're on a file system like
> procfs that has the bug?  Perhaps we can have a list of known good
> file systems.  But this is lower priority than getting the bug fixed.

Ok, I agree. A flag is not optimal.

I did some reading but I think you cant tell if a file system has that
issue. I slightly more elaborate approach than just checking for file
size 0 (as Jim did) would be to actually try to read such a file and
see if you can get anything from it. If yes, than diff by looking into
the content.

However, still procfs or worse debugfs could report anything as size.
The only proper fix would be to ignore file sizes entirely.

 ~stephan




This bug report was last modified 9 years and 167 days ago.

Previous Next


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