[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: are quotas journaled?

On Sep 13, 2001  15:14 +0100, Matt Bernstein wrote:
> quotacheck takes longer than fsck on our ext2 fileservers. Is this
> redundant in ext3? Do I need data=journal?

It is possible to data journal specific files (such as quota files)
even if the rest of the filesystem is using data=ordered.  In the 2.2
patches, the ext3 code would specifically set the data-journaling
flag on quota files, but I don't know if this happens in 2.4.  If not,
you would need a one-time "chattr +j <quota-file[s]>" on the ext3
quota files, and it would then start to be data journaled.

Having said that, I'm not 100% sure if this is working correctly for
2.4 kernels.  There were reports (not with quota) that setting the
journal attribute on a file didn't work, but this _should_ have been
fixed in the most recent release of ext3 for 2.4.

I'm also not totally sure if it is possible to set the +j attribute on
anything but an ext3 filesystem (i.e. you _may_ not be able to set it
under ext2) so while it would be helpful to set this attribute from the
quota tools, it may not be reliable to do it only at initial quotafile
creation time (maybe each time quotacheck is run it should try and set
it if unset).  Note that there is also a patch for reiserfs which adds
the "ext2" ioctls for setting file attributes (so it will work with the
common "chattr" and "lsattr" commands), but it cannot _yet_ support
per-file data journaling (or data journaling at all for that matter).

Cheers, Andreas
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]