atom feed47 messages in org.freebsd.freebsd-fsGJournal (hopefully) final patches.
FromSent OnAttachments
Pawel Jakub DawidekAug 8, 2006 7:52 pm 
Markus TrippelsdorfAug 8, 2006 9:02 pm 
Markus TrippelsdorfAug 8, 2006 9:41 pm 
Daniel O'ConnorAug 9, 2006 12:43 am 
Pawel Jakub DawidekAug 9, 2006 6:24 am 
Brian CandlerAug 9, 2006 12:58 pm 
Pawel Jakub DawidekAug 9, 2006 1:03 pm 
Dag-Erling SmørgravAug 10, 2006 1:38 pm 
Markus TrippelsdorfAug 10, 2006 1:54 pm 
Chuck SwigerAug 10, 2006 2:05 pm 
Kip MacyAug 10, 2006 3:33 pm 
Craig BostonAug 10, 2006 6:47 pm 
Eric AndersonAug 10, 2006 7:06 pm 
Craig BostonAug 10, 2006 7:18 pm 
Jan SrzednickiAug 10, 2006 7:21 pm 
Pawel Jakub DawidekAug 10, 2006 7:29 pm 
Pawel Jakub DawidekAug 10, 2006 7:43 pm 
R. B. RiddickAug 10, 2006 7:59 pm 
Jan SrzednickiAug 10, 2006 8:01 pm 
Craig BostonAug 10, 2006 9:05 pm 
Sean BryantAug 10, 2006 9:18 pm 
Pawel Jakub DawidekAug 10, 2006 10:30 pm 
Pawel Jakub DawidekAug 10, 2006 10:37 pm 
Pawel Jakub DawidekAug 10, 2006 10:39 pm 
Sean BryantAug 10, 2006 10:53 pm 
Pawel Jakub DawidekAug 10, 2006 11:23 pm 
Sean BryantAug 10, 2006 11:27 pm 
Paul AllenAug 11, 2006 2:49 am 
Robert WatsonAug 11, 2006 1:33 pm 
Thomas QuinotAug 11, 2006 1:54 pm 
Pawel Jakub DawidekAug 11, 2006 2:00 pm 
Thomas QuinotAug 11, 2006 2:03 pm 
Pawel Jakub DawidekAug 11, 2006 2:06 pm 
Pawel Jakub DawidekAug 12, 2006 10:04 am 
Igor RobulAug 16, 2006 1:05 pm 
Igor RobulAug 16, 2006 1:09 pm 
R. B. RiddickAug 16, 2006 1:44 pm 
R. B. RiddickAug 17, 2006 12:11 am 
Eric AndersonAug 17, 2006 2:54 am 
Eric AndersonAug 17, 2006 1:14 pm 
Pawel Jakub DawidekAug 17, 2006 2:08 pm 
Eric AndersonAug 17, 2006 2:47 pm 
Pawel Jakub DawidekAug 17, 2006 3:00 pm 
Eric AndersonAug 17, 2006 3:02 pm 
Pawel Jakub DawidekAug 17, 2006 3:20 pm 
Eric AndersonAug 17, 2006 3:24 pm 
Ulrich SpoerleinAug 18, 2006 6:37 pm 
Subject:GJournal (hopefully) final patches.
From:Sean Bryant (brya@gmail.com)
Date:Aug 10, 2006 9:18:31 pm
List:org.freebsd.freebsd-fs

On 8/8/06, Pawel Jakub Dawidek <pj@freebsd.org> wrote:

Hi.

I'm pleased to announce hopefully the final gjournal patches.

The biggest change is removal of magic .deleted/ directory. Now orphaned objects (files/directories which were deleted, but are still open) are handled in a different way - in every CG there is a counter which tells how many such orphaned objects are there in the given CG. There is also a global unreferenced inodes counter in the superblock.

On power failure or system crash, fast fsck version will be run on journaled file system which only checks CG for unreferenced inodes. Multi terabyte file system is checked in few minutes, but it depends on how many such objects we have. The global counter in the superblock allows to stop scanning CGs when it goes to 0.

Another change is that now from a configuration point of view gjournal is threated simlar to soft-updates - you need to specify -J flag at newfs(8) time or use 'tunefs -J enable <fsdev>'. 'gjournal' is no longer a mount option.

To create journaled UFS file system on ad0s1d partition:

# gjournal load # gjournal label ad0s1d # newfs -J /dev/ad0s1d.journal # mount -o noatime,async /dev/ad0s1d.journal /mnt

On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. One can still run regular check by not giving the -p option.

BTW. This should allow to have root file system on gjournal partition, but haven't verified it yet - just a theory.

Patches for 7-CURRENT:

http://people.freebsd.org/~pjd/patches/gjournal_20060808.patch

Patches for 6-STABLE:

http://people.freebsd.org/~pjd/patches/gjournal6_20060808.patch

To apply the patches:

# cd /usr/src # mkdir sys/geom/journal sbin/geom/class/journal
sys/modules/geom/geom_journal # patch < gjournal_20060808.patch

Now you need to recompile the world and the kernel. Remember to add 'options UFS_GJOURNAL' to your kernel configuration file.

If there will be no bug reports nor strong objections, I'd like commit gjournal in a week or two first to 7-CURRENT and then to 6-STABLE (maybe before 6.2-RELEASE, but it depends on testing and feedback from users).

Enjoy!

Okay I have applied the latest patches. And everything works fine on a new filesystem (newfsing).

Trying to add it to an existing file system I'm getting problems. This might be my fault. So I'll give it another go before reporting back my problems.