Subject: Re: df(1) on unmounted device works improperly
To: Greywolf <>
From: Simon Burge <>
List: current-users
Date: 03/18/2003 17:55:13
Greywolf wrote:

> Hey, all,
> with -current kernel and userland as of a week ago (and, it seems, as
> far back as 1.6M, if not farther), df(1) does The Wrong Thing.

This is from:

	revision 1.43
	date: 2002/08/02 08:17:12;  author: soren;  state: Exp;  lines: +4 -113
	Following FreeBSD's example, remove the old pre-statfs(2) code for
	examining FFS filesystems directly. This also gets rid of df(1)'s
	setgid operator bit.

of df.c.

I think maybe an acceptable compromise would be to add the code back but
don't add the setgid bit so that the user must have read access to the
device to use the old block query method.  Does this sound reasonable?

Simon Burge                            <>
NetBSD Support and Service: