From nobody@FreeBSD.org Sat May 10 18:59:08 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A37671065675 for ; Sat, 10 May 2008 18:59:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 90AF38FC0A for ; Sat, 10 May 2008 18:59:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4AIw7rB000860 for ; Sat, 10 May 2008 18:58:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4AIw7xp000859; Sat, 10 May 2008 18:58:07 GMT (envelope-from nobody) Message-Id: <200805101858.m4AIw7xp000859@www.freebsd.org> Date: Sat, 10 May 2008 18:58:07 GMT From: Chad Milios To: freebsd-gnats-submit@FreeBSD.org Subject: df: -t option destroys info for unionfs (and maybe other) mounts X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 123574 >Category: bin >Synopsis: [unionfs] df(1) -t option destroys info for unionfs (and maybe other) mounts >Confidential: no >Severity: non-critical >Priority: low >Responsible: daichi >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: Sat May 17 09:03:17 UTC 2008 >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 :/media/ttown/Archive 467G 465G 1.9G 100% /home/joe/Archive :/media/kron/Archive 856G 843G 12G 99% /home/joe/Archive :/media/pburg/Archive 1.2T 993G 252G 80% /home/joe/Archive :/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 :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive levar# df -ht unionfs Filesystem Size Used Avail Capacity Mounted on :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/media/sly/Archive 1.6T 1.5T 98G 94% /home/joe/Archive :/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: Responsible-Changed-From-To: freebsd-bugs->daichi Responsible-Changed-By: matteo Responsible-Changed-When: Sab 17 Mag 2008 09:01:35 UTC Responsible-Changed-Why: User is running 6.3 which, IIRC, does not include the new unionfs implementation, but this bug may be present in the new one too. Daichi surely knows whether this is the case. http://www.freebsd.org/cgi/query-pr.cgi?pr=123574 >Unformatted: