From owner-freebsd-bugs Sat Aug 10 1:30: 8 2002 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 255B637B401 for ; Sat, 10 Aug 2002 01:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA8C743E6A for ; Sat, 10 Aug 2002 01:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7A8U3JU081424 for ; Sat, 10 Aug 2002 01:30:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7A8U3qT081423; Sat, 10 Aug 2002 01:30:03 -0700 (PDT) Date: Sat, 10 Aug 2002 01:30:03 -0700 (PDT) Message-Id: <200208100830.g7A8U3qT081423@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bernd Luevelsmeyer Subject: Re: bin/19772: df output wrong for union-mounts Reply-To: Bernd Luevelsmeyer 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 The following reply was made to PR bin/19772; it has been noted by GNATS. From: Bernd Luevelsmeyer To: Ian Dowse Cc: freebsd-bugs@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/19772: df output wrong for union-mounts Date: Sat, 10 Aug 2002 10:27:51 +0200 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