From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 21 12:01:01 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C07716A4D5 for ; Mon, 21 Jun 2004 12:01:01 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41A2443D53 for ; Mon, 21 Jun 2004 12:01:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i5LC0hG9073176 for ; Mon, 21 Jun 2004 12:00:43 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5LC0hnP073173; Mon, 21 Jun 2004 12:00:43 GMT (envelope-from gnats) Resent-Date: Mon, 21 Jun 2004 12:00:43 GMT Resent-Message-Id: <200406211200.i5LC0hnP073173@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Valentin Nechayev Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C90416A4CE for ; Mon, 21 Jun 2004 11:51:55 +0000 (GMT) Received: from ustas.carrier.kiev.ua (ustas.carrier.kiev.ua [193.193.193.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF57A43D1F for ; Mon, 21 Jun 2004 11:51:53 +0000 (GMT) (envelope-from netch@ustas.carrier.kiev.ua) Received: (from netch@localhost) by ustas.carrier.kiev.ua (8.12.11/8.11.3) id i5LBoaw7022311; Mon, 21 Jun 2004 14:50:36 +0300 (EEST) (envelope-from netch) Message-Id: <200406211150.i5LBoaw7022311@ustas.carrier.kiev.ua> Date: Mon, 21 Jun 2004 14:50:36 +0300 (EEST) From: Valentin Nechayev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/68165: df fails to check fs type with -t and inaccessible mount point X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Valentin Nechayev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 12:01:01 -0000 >Number: 68165 >Category: bin >Synopsis: df fails to check fs type with -t and inaccessible mount point >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 21 12:00:43 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Valentin Nechayev >Release: FreeBSD 4.10-RELEASE i386 >Organization: Lucky Net Ltd. >Environment: System: FreeBSD 4.10-RELEASE >Description: Full df output for this host says: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 496111 261683 194740 57% / /dev/da0s2e 1977238 1006815 812244 55% /var /dev/da0s3e 14515912 5078856 8275784 38% /var/Backups/important /dev/da1s1e 4320972 1500900 2474395 38% /var/Backups/backups procfs 4 4 0 100% /proc /dev/da2s4e 32676496 7719364 22343016 26% /var/Backups/d2 Monitoring hook runs as nobody; `nobody' has no access inside /var/Backups. When run `df', all is OK. When run `df -t ufs' as nobody, it says: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 496111 261683 194740 57% / /dev/da0s2e 1977238 1006818 812241 55% /var /dev/da0s3e 14515912 5078856 8275784 38% /var/Backups/important /dev/da1s1e 4320972 1500900 2474395 38% /var/Backups/backups procfs 4 4 0 100% /proc so it loses /var/Backups/d2 (which is ufs) and prints /proc (which is not ufs). With access inside /var/Backups, it prints correct: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 496111 261683 194740 57% / /dev/da0s2e 1977238 1006815 812244 55% /var /dev/da0s3e 14515912 5078856 8275784 38% /var/Backups/important /dev/da1s1e 4320972 1500900 2474395 38% /var/Backups/backups /dev/da2s4e 32676496 7719364 22343016 26% /var/Backups/d2 Also, it works OK when /proc is mounted _after_ /var/Backups/d2, regardless of right to access inside /var/Backups; but remounting /proc before /var/Backups/d2 triggers the bug again. >How-To-Repeat: See above. >Fix: >Release-Note: >Audit-Trail: >Unformatted: