Subject: re: CVS commit: src/sbin/newfs
To: Greg 'groggy' Lehey <grog@NetBSD.org>
From: matthew green <mrg@eterna.com.au>
List: source-changes
Date: 10/10/2003 17:54:27
   
   >    On Friday, 10 October 2003 at 16:23:31 +1000, matthew green wrote:
   >>
   >> what's this all about?  this sounds like a strange option to me
   >> and i don't recall it being discussed anywhere...
   >>
   >> how is it different to using `sysctl kern.rawpartition`?
   >
   >    Good question.  Where do I find the docco for kern.rawpartition?
   >
   > try sysctl(8)?
   
   Yes, before writing that.  It says:
   
        kern.rawpartition                            integer       no
   
   That doesn't exactly say what it's good for.  Setting it as root
   doesn't help much either:

do you not understand the concept of a disk raw partition?  it seem
that sysctl(3) has more info, but it doesn't really say more than
"the raw partition of the disk" ...
   
     # sysctl -w kern.rawpartition=1
     kern.rawpartition: sysctl() failed with Operation not permitted

you can not change it it is constant per platform.

   
   The -V flag tells newfs not to make assumptions about the device name.

i think the best thing would be to teach newfs to just try the name
as-is first (perhaps the -F flag already does what you need, but i
think it would be better for this to "just work.")


.mrg.