GEOM too restrictive even with debugflags=16

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Aug 24 05:02:24 GMT 2005


In message <200508232307.00566 at harrymail>, Emanuel Strobl writes:
>--nextPart2133393.7VrDXAqMhl
>Content-Type: text/plain;
>  charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable
>Content-Disposition: inline
>
>Hello,
>
>again I ran into the problem that I need to edit my GPT while the system is
> 
>in multiuser running. But the following doesn't work:
>cale:/#70: sysctl -w kern.geom.debugflags=16
>kern.geom.debugflags: 0 -> 16
>cale:/#71: gpt remove -i 8 ad0s2
>gpt remove: unable to open device 'ad0s2': Operation not permitted
>
>Arrghhh. Now I have to stop all work and go into singleuser mode. Thats not
>acceptable! And please don't tell me that I use the wrong device, it's a 
>i386 machine so I need a MBR in ad0 and have to use GPT inside a slice!

The geom_gpt class needs to implement g_ctl methods for metadata modification.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list