Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 10:27:51 +0200
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
Message-ID:  <20020810082751.95848B8101@christel.heitec.net>
References:  <200208092343.g79NhJfK095934@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?20020810082751.95848B8101>