cvs commit: src/sys/kern vfs_journal.c src/sys/sys journal.h mountctl.h src/sbin/mountctl mountctl.8 mountctl.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Jul 12 19:02:16 PDT 2005
dillon 2005/07/12 19:00:19 PDT
DragonFly src repository
Modified files:
sys/kern vfs_journal.c
sys/sys journal.h mountctl.h
sbin/mountctl mountctl.8 mountctl.c
Log:
Add journaling restart support, required to produce a robust journaling
environment. If a journal is writing to one stream and the stream breaks
or dies or otherwise fails, this feature gives us the ability to restart the
journaling stream on a new descriptor without losing any data. The
journaling restart code does a shutdown() of the old descriptor, waits for
both directions to cease operation, installs a new stream descriptor,
and resets the FIFO index to the last acknowledged offset.
This can be demonstrated by opening two windows. In the first window do:
mountctl -a2 /usr:test | jscan -d2 stdin
Mess around a bit on /usr. Then in the second window do:
mountctl -r2 /usr:test | jscan -d2 stdin
The first jscan will terminate and the new jscan will pick up the stream.
Revision Changes Path
1.18 +131 -27 src/sys/kern/vfs_journal.c
1.6 +2 -1 src/sys/sys/journal.h
1.9 +7 -0 src/sys/sys/mountctl.h
1.5 +21 -7 src/sbin/mountctl/mountctl.8
1.6 +60 -16 src/sbin/mountctl/mountctl.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_journal.c.diff?r1=1.17&r2=1.18&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/journal.h.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/mountctl.h.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/mountctl/mountctl.8.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/mountctl/mountctl.c.diff?r1=1.5&r2=1.6&f=u
More information about the Commits
mailing list