Re: writing to mbr under GEOM

2002-12-17 Thread Matthew N. Dodd
On Mon, 16 Dec 2002, Ray Kohler wrote:
 What's the status of the issue where devices with open partitions can't
 have their boot sectors written to? I know phk@ was working on it a
 while back but it's something I'd like to see fixed soon, maybe before
 release?

I've been using the following:

ftp://ftp.jurai.net/users/winter/patches/geom-foot.patch

Set the sysctl 'kern.geom.allow_foot_shooting' to 1 and cross your
fingers.  Most of the time accessing an already open device is harmless
but I've encountered panics a few times.  YMMV

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



writing to mbr under GEOM

2002-12-16 Thread Ray Kohler
What's the status of the issue where devices with open partitions can't
have their boot sectors written to? I know phk@ was working on it a
while back but it's something I'd like to see fixed soon, maybe before
release?

~  9:14PM % sudo fdisk -B ad0
fdisk: can't open device /dev/ad0
fdisk: cannot open disk /dev/ad0: Operation not permitted
zsh: 13660 exit 1 sudo fdisk -B ad0
~  9:25PM % sudo fdisk -i ad0
fdisk: can't open device /dev/ad0
fdisk: cannot open disk /dev/ad0: Operation not permitted
zsh: 13661 exit 1 sudo fdisk -i ad0

-- 
Ray Kohler [EMAIL PROTECTED]
When you have an efficient government, you have a dictatorship.
-- Harry Truman

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message