Date: Sat, 10 Aug 2002 01:30:03 -0700 (PDT) From: Bernd Luevelsmeyer <bdluevel@heitec.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/19772: df output wrong for union-mounts Message-ID: <200208100830.g7A8U3qT081423@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/19772; it has been noted by GNATS. From: Bernd Luevelsmeyer <bdluevel@heitec.net> To: Ian Dowse <iedowse@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208100830.g7A8U3qT081423>