[issue1667] disklabel / disklabel64 change needs reboot / disk change

Alex Hornung (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Tue Feb 9 00:15:24 PST 2010


Alex Hornung <ahornung at gmail.com> added the comment:

To fix this, please add the following lines in "case DIOCWLABEL:" 
(sys/kern/subr_diskslice.c)
disk_msg_send_sync(DISK_SLICE_REPROBE, dev->si_disk, sp);
devfs_config();
just after line 648:
set_ds_wlabel(ssp, slice, *(int *)data != 0);

I can't do it right now, but I'll be back to work on this and more on the 
weekend. 

This should solve the disklabel issue at least. Direct writes (e.g. dd) should 
be detected properly with the DSF_REPROBE magic. If not, please post some more 
info on the disk/slice structure.

Cheers,
Alex Hornung

----------
assignedto:  -> alexh
nosy: +alexh
priority:  -> bug

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1667>
_____________________________________________________





More information about the Bugs mailing list