Filesystem journaling. Reorganize the journal scan for the mountpoint to
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Aug 2005 20:28:33 +0000 (20:28 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Aug 2005 20:28:33 +0000 (20:28 +0000)
commit26e603edf5dca81306c054ceeb9203d215c0f4d2
treedd0de24a077666796b73c7985278696a3c0d382c
parent18a059d033f47e102e7f883e937890493a5b88af
Filesystem journaling.  Reorganize the journal scan for the mountpoint to
allow portions of the journal transaction to be written prior to the VOP
operation being executed, and accomodate transactional aborts if the VOP
fails.   Previously the journal records had to be written only after the VOP
succeeded.

Implement UNDO records, including writing out file data that is about to
be overwritten and the mtime prior to a write, rename, or remove.  UNDO
records allow us to create a reversable journal, where we can wind a mirror
forwards or backwards simply by scanning the journal forwards or backwards.
sys/kern/vfs_jops.c
sys/kern/vfs_journal.c
sys/sys/journal.h
sys/sys/mountctl.h