Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2006 16:32:31 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "R. B. Riddick" <arne_woerner@yahoo.com>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: Journaling UFS with gjournal.
Message-ID:  <20060619143231.GF1130@garage.freebsd.pl>
In-Reply-To: <20060619133706.63795.qmail@web30302.mail.mud.yahoo.com>
References:  <20060619131101.GD1130@garage.freebsd.pl> <20060619133706.63795.qmail@web30302.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--DrWhICOqskFTAXiy
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 19, 2006 at 06:37:06AM -0700, R. B. Riddick wrote:
+> --- Pawel Jakub Dawidek <pjd@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 fi=
le
+> system (I mean: If we have a new file, that grows sequentially from 0 by=
tes 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.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--DrWhICOqskFTAXiy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFElrV/ForvXbEpPzQRArG5AJwPSlBnmkANdK8BeVcc/Z7yyux+IQCgs8AO
KOtRRf+sOspu7+/IF6PHXjs=
=ypFh
-----END PGP SIGNATURE-----

--DrWhICOqskFTAXiy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060619143231.GF1130>