Journaling UFS with gjournal.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Jun 19 14:35:13 UTC 2006
On Mon, Jun 19, 2006 at 06:37:06AM -0700, R. B. Riddick wrote:
+> --- Pawel Jakub Dawidek <pjd at FreeBSD.org> wrote:
+> > 2. If we have file system, synchronize it.
+> > 3. Mark file system as clean.
+> > 4. Block all write requests to the file system.
+> >
+> Shouldn't we do 4. before 2.?
4 is done via vfs_write_suspend() function, which synchronize file
system once again.
+> Do we write _new_ blocks of a file via the journal or directly to the file
+> system (I mean: If we have a new file, that grows sequentially from 0 bytes to
+> 1GB, it would save some disc access, if we didn't write the data to the
+> journal)?
As I said gjournal is below file system layer. It receives I/O requests
only and cannot say which one is related to growing file, which has
metadata inside, etc.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20060619/e6d53f1b/attachment.pgp
More information about the freebsd-fs
mailing list