cvs commit: src/sys/geom geom_mbr.c
Poul-Henning Kamp
phk at FreeBSD.org
Sun Nov 28 12:57:26 PST 2004
phk 2004-11-28 20:57:25 UTC
FreeBSD src repository
Modified files:
sys/geom geom_mbr.c
Log:
Fix a long standing bug in geom_mbr which is only now exposed by the
correct open/close behaviour of filesystems:
When an ioctl to modify the MBR arrives, we cannot take for granted that
we have the consumer open.
The symptom is that one cannot run 'boot0cfg -s2 /dev/ad0' in single-user
mode because / is the only open partition in only open r1w0e1.
If it is not, we attempt to increase the write count by one and
decrease it again afterwards.
Presumably most if not all other slices suffer from the same problem.
Revision Changes Path
1.62 +14 -4 src/sys/geom/geom_mbr.c
More information about the cvs-src
mailing list