[patch] fix the ext3 data=journal unmount bug

David A. Bandel david
Mon May 17 11:41:15 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 06 Dec 2002 16:54:44 -0800
begin  Ken Moffat <kmoffat at drizzle.com> spewed forth:

> Andrew Morton (by way of Douglas J Hunley ) wrote:
> 
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >This patch fixes the data loss which can occur when unmounting a
> >data=journal ext3 filesystem.
> >
> >  
> >
> 
> forgive me, but how do we apply this patch?

save the patch:
cut the text, the first line should be:
- - --- linux-akpm/fs/buffer.c~sync_fs    Thu Dec  5 21:33:56 2002

the last line is the - just before the signature.  Make sure you don't
wrap any lines cutting and pasting between the message and the patch file.

assuming your kernel source is /usr/src/linux, save the patch in /usr/src
as ext3.patch and cd linux

I suggest you "dry-run" the patch first (test it):

patch -p1 --dry-run < ../ext3.patch

If you get no failures (you will if you put the XFS patch on), then remove
the --dry-run and go again.

If you decide you don't want the patch anymore, just do:

patch -p1 -R < ../ext3.patch

and all will be reversed.


Hope I didn't obfuscate things too much. ;-)

Next lesson:  creating unified diff patches.

Ciao,

David A. Bandel
- -- 
Focus on the dream, not the competition.
		-- Nemesis Racing Team motto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE98VaN3uVcotqGMQcRAmnWAJ4/xEbwsC7yp2SHkArsH0T2Zwr0pwCfQOHx
ISd+Xw9UrM16koPlqgNfsEo=
=aQry
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list