Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/sbin/newfs



   
   >    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.



Home | Main Index | Thread Index | Old Index