GNU bug report logs - #53037
df/total-verify fail with cephfs

Previous Next

Package: coreutils;

Reported by: Dylan Simon <dylan <at> dylex.net>

Date: Wed, 5 Jan 2022 20:25:02 UTC

Severity: normal

Full log


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

From: Dylan Simon <dylan <at> dylex.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 53037 <at> debbugs.gnu.org
Subject: Re: bug#53037: df/total-verify fail with cephfs
Date: Wed, 5 Jan 2022 17:11:29 -0500
From Paul Eggert <eggert <at> cs.ucla.edu>, Wed, Jan 05, 2022 at 01:05:03PM -0800:
> On 1/5/22 11:27, Dylan Simon wrote:
> > Only adding rows with all known values
> > might make sense but would still break the test (wrong total total instead):
> > 
> >    if (known_value (iv->total) && known_value (iv->available)) {
> >      grand_fsu.fsu_files += iv->total;
> >      grand_fsu.fsu_ffree += iv->available;
> >    }
> 
> Sorry, I'm not quite following. If you make the above change, what will the
> output look like instead? And how will that break the test?

Then it will look like this (I'm inferring, haven't actually tried it):

Filesystem        Inodes     IUsed    IFree IUse% Mounted on
/dev/sda1       20971520    529832 20441688    3% /
ceph           901006598         -        -     - /mnt/ceph
total           20971520    529832 20441688    3% -

That is, the ceph line will just be excluded completely from the total.  Now
the used and free lines add up correctly, but total Inodes does not.




This bug report was last modified 3 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.