From owner-freebsd-bugs Sat Aug 10 1:27:55 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCEE937B400; Sat, 10 Aug 2002 01:27:53 -0700 (PDT) Received: from christel.heitec.net (christel.heitec.net [193.101.232.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FF1843E81; Sat, 10 Aug 2002 01:27:53 -0700 (PDT) (envelope-from bdluevel@heitec.net) Received: from heitec.net (paladin.heitec.net [193.101.232.30]) by christel.heitec.net (Postfix) with ESMTP id 95848B8101; Sat, 10 Aug 2002 10:27:51 +0200 (CEST) Date: Sat, 10 Aug 2002 10:27:51 +0200 From: Bernd Luevelsmeyer X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Ian Dowse Cc: freebsd-bugs@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/19772: df output wrong for union-mounts References: <200208092343.g79NhJfK095934@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020810082751.95848B8101@christel.heitec.net> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ian Dowse wrote: > > Synopsis: df output wrong for union-mounts > > State-Changed-From-To: open->feedback > State-Changed-By: iedowse > State-Changed-When: Fri Aug 9 16:38:57 PDT 2002 > State-Changed-Why: > > This doesn't seem to be easy to fix, as to get non-cached information > requires using either fstatfs() or getmntinfo(, MNT_WAIT). The > former cannot distinguish between filesystems with identical > mountpoints and the latter will hang if an NFS server is down. Is > the "-n" flag an acceptible workaround for you? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=19772 As a workaround, it's fine. But in the long run, the output of "df -t nonfs" should either include all the requested mountpoints or fail with an error. Currently the information is wrong without an error message. I'd rather have it risk the hang (with a timeout); after all, the user asked for non-cached information without -n, and the man-page explicitly warns about the long delay. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message