bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33303: hex id for file system is incorrect or non-standard using uil


From: Bernhard Voelker
Subject: bug#33303: hex id for file system is incorrect or non-standard using uil 'id'
Date: Wed, 7 Nov 2018 20:22:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 11/7/18 5:58 PM, Bernhard Voelker wrote:
> tag 33303 notabug
> close 33303
> thanks
> 
> On 11/7/18 5:07 PM, L A Walsh wrote:
>> Was looking to see when the underlying filesystem
>> changed in a path.
>>
>> I used:
>>>  stat -f -c%f /
>> 82100000000
>> stat -f -c%i /var
>> 82200000000

sorry, I overlooked the %i example:

%i comes from the f_sid member of the returned structure from statfs(),
just printed in hex format:

  statfs("/", {..., f_fsid={val=[3357913161, 1752493561]}, ...}) = 0
  ...
  write(1, "c825b0496874edf9\n", 17)      = 17
  c825b0496874edf9
  close(1)                                = 0
  close(2)                                = 0
  exit_group(0)                           = ?
  +++ exited with 0 +++

  $ printf '%x' 3357913161 1752493561
  c825b0496874edf9

So it seems to be a quite some strange incident that your f_bfree value
is so eye-catchingly close to f_fsid.

Have a nice day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]