Date: Sun, 23 Jan 2000 23:10:03 -0800 (PST) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/16320: fstat -f confuses some partitions Message-ID: <200001240710.XAA11221@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/16320; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: krentel@dreamscape.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/16320: fstat -f confuses some partitions Date: Mon, 24 Jan 2000 18:02:50 +1100 (EST) On Sun, 23 Jan 2000 krentel@dreamscape.com wrote: > >Fix: > I suggest the following patch. It removes the 0xffff mask from fsid, > so fstat correctly distinguishes between da0s1f and da0s2f. Instead, > it puts the mask on the printf statement, so fstat -n continues to > display da0s2f as device 4,5 instead of 4,0x00030005. > > Or, maybe da0s2f really should print as 4,0x00030005, I don't know. > I've never been that clear on Freebsd's use of the high-order bits > in the minor number. fstat should print the full number, but this will mess up the formatting. It uses %2d formatting, so it already messes up minor numbers larger than 99. Bruce 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?200001240710.XAA11221>