GNU bug report logs - #69873
df(1) does not display all UFS mountpoints as valid on FreeBSD

Previous Next

Package: coreutils;

Reported by: "Osipov, Michael (IN IT IN)" <michael.osipov <at> innomotics.com>

Date: Mon, 18 Mar 2024 16:32:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "Osipov, Michael (IN IT IN)" <michael.osipov <at> innomotics.com>
To: 69873 <at> debbugs.gnu.org
Subject: bug#69873: Acknowledgement (df(1) does not display all UFS mountpoints as valid on FreeBSD)
Date: Mon, 18 Mar 2024 20:16:45 +0100
I did some more investigation with stat(2). Running native on FreeBSD 
with Python os package 'st_dev':
> $ df  -t ufs | cut -f 6 -w | sed 1d | xargs -I% python ~/stat.py  %
> /: 108
> /tmp: 110
> /var: 111
> /var/tmp: 112
> /usr: 113
> /usr/local: 161
> /usr/ports: 142
> /usr/obj: 141
> /usr/local/pgsql: 140
> /var/nexus2: 162
> /var/svn: 163
> /var/osipovmi: 164
> /var/poudriere: 166
> /compat: 165
> /usr/local/bastille: 139

Now with a modified version of GNU df(1) compiled on Linux, running on 
FreeBSD:
> $ ./df -a -B 512 -P  -t ufs -T
> /: 108
> /tmp: 165
> /var: 165
> /var/tmp: 112
> /usr: 165
> /usr/local: 161
> /usr/ports: 142
> /usr/obj: 141
> /usr/local/pgsql: 140
> /var/nexus2: 162
> /var/svn: 163
> /var/osipovmi: 164
> /var/poudriere: 166
> /compat: 165
> /usr/local/bastille: 139

One can clearly see that the dev ids do not match. There seems to be a 
bug in the layer. I will investigate on FreeBSD 15 and report upstream. 
Let's pause this one for a moment.





This bug report was last modified 1 year and 86 days ago.

Previous Next


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