Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2008 18:58:07 GMT
From:      Chad Milios <freebsd-pr@cropcirclesystems.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/123574: df: -t option destroys info for unionfs (and maybe other) mounts
Message-ID:  <200805101858.m4AIw7xp000859@www.freebsd.org>
Resent-Message-ID: <200805101900.m4AJ0Cs2013454@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         123574
>Category:       bin
>Synopsis:       df: -t option destroys info for unionfs (and maybe other) mounts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 10 19:00:12 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Chad Milios
>Release:        6.3-RELEASE-p1 amd64
>Organization:
Crop Circle Systems
>Environment:
FreeBSD levar.cropcirclesystems.net 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Sat Mar 22 20:55:37 UTC 2008     root@levar.cropcirclesystems.net:/usr/obj/usr/src/sys/SMP  amd64
>Description:
df alone shows info for each layering of a unionfs mount. when using the -t option, all layers show the info pertaining to only the top layer.

levar# df -h
Filesystem                      Size    Used   Avail Capacity  Mounted on
/dev/mirror/levar               3.9G    368M    3.2G    10%    /
devfs                           1.0K    1.0K      0B   100%    /dev
/dev/concat/cbus                 77G     15G     56G    21%    /media/cbus
/media/cbus/levar/var            77G     15G     56G    21%    /var
/media/cbus/levar/usr/src        77G     15G     56G    21%    /usr/src
/media/cbus/levar/usr/obj        77G     15G     56G    21%    /usr/obj
/media/cbus/levar/usr/ports      77G     15G     56G    21%    /usr/ports
/media/cbus/levar/home           77G     15G     56G    21%    /home
/dev/ufs/ttown                  389G    387G    1.9G   100%    /media/ttown
/dev/ufs/sly                    389G    291G     98G    75%    /media/sly
/dev/ufs/pburg                  389G    137G    252G    35%    /media/pburg
/dev/ufs/kron                   389G    377G     12G    97%    /media/kron
<above>:/media/ttown/Archive    467G    465G    1.9G   100%    /home/joe/Archive
<above>:/media/kron/Archive     856G    843G     12G    99%    /home/joe/Archive
<above>:/media/pburg/Archive    1.2T    993G    252G    80%    /home/joe/Archive
<above>:/media/sly/Archive      1.6T    1.5T     98G    94%    /home/joe/Archive

levar# df -ht nofoobarfs
Filesystem                     Size    Used   Avail Capacity  Mounted on
/dev/mirror/levar              3.9G    368M    3.2G    10%    /
devfs                          1.0K    1.0K      0B   100%    /dev
/dev/concat/cbus                77G     15G     56G    21%    /media/cbus
/media/cbus/levar/var           77G     15G     56G    21%    /var
/media/cbus/levar/usr/src       77G     15G     56G    21%    /usr/src
/media/cbus/levar/usr/obj       77G     15G     56G    21%    /usr/obj
/media/cbus/levar/usr/ports     77G     15G     56G    21%    /usr/ports
/media/cbus/levar/home          77G     15G     56G    21%    /home
/dev/ufs/ttown                 389G    387G    1.9G   100%    /media/ttown
/dev/ufs/sly                   389G    291G     98G    75%    /media/sly
/dev/ufs/pburg                 389G    137G    252G    35%    /media/pburg
/dev/ufs/kron                  389G    377G     12G    97%    /media/kron
<above>:/media/sly/Archive     1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive     1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive     1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive     1.6T    1.5T     98G    94%    /home/joe/Archive

levar# df -ht unionfs
Filesystem                    Size    Used   Avail Capacity  Mounted on
<above>:/media/sly/Archive    1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive    1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive    1.6T    1.5T     98G    94%    /home/joe/Archive
<above>:/media/sly/Archive    1.6T    1.5T     98G    94%    /home/joe/Archive

>How-To-Repeat:
create some unionfs mount points, and run `df` and `df -t nofoobarfs` and `df -t unionfs` and check the output.

here are the pertinent lines in my fstab:

/media/ttown/Archive    /home/joe/Archive       unionfs rw,noatime,copymode=transparent,late    0       0
/media/kron/Archive     /home/joe/Archive       unionfs rw,noatime,copymode=transparent,late    0       0
/media/pburg/Archive    /home/joe/Archive       unionfs rw,noatime,copymode=transparent,late    0       0
/media/sly/Archive      /home/joe/Archive       unionfs rw,noatime,copymode=transparent,late    0       0

here are all the rest, if for some reason some of the properties of the encompassing mount points seem to have an effect:

/dev/mirror/levar       /       ufs     rw,noatime      1       1
/dev/concat/cbus        /media/cbus     ufs     rw,noatime      1       2
/dev/ufs/ttown  /media/ttown    ufs     rw,noatime,late 1       2
/dev/ufs/sly    /media/sly      ufs     rw,noatime,late 1       2
/dev/ufs/pburg  /media/pburg    ufs     rw,noatime,late 1       2
/dev/ufs/kron   /media/kron     ufs     rw,noatime,late 1       2
/media/cbus/levar/var   /var    nullfs  rw,noatime      0       0
/media/cbus/levar/usr/src       /usr/src        nullfs  rw,noatime      0       0
/media/cbus/levar/usr/obj       /usr/obj        nullfs  rw,noatime      0       0
/media/cbus/levar/usr/ports     /usr/ports      nullfs  rw,noatime      0       0
/media/cbus/levar/home  /home   nullfs  rw,noatime      0       0

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805101858.m4AIw7xp000859>