* ext3-2.4-0.9.10
@ 2001-09-24 6:01 Andrew Morton
2001-09-24 12:16 ` ext3-2.4-0.9.10 Santiago Garcia Mantinan
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Andrew Morton @ 2001-09-24 6:01 UTC (permalink / raw)
To: lkml, ext3-users@redhat.com
An ext3 patch against linux 2.4.10 is at
http://www.uow.edu.au/~andrewm/linux/ext3/
This patch is *lightly tested* - ie, it boots and does stuff.
The changes to ext3 are small, but the kernel which it patches
has recently changed a lot. If you're cautious, please wait
a couple of days.
The patch retains the buffer-tracing code. This will soon be
broken out into a separate patch to make ext3 suitable for
submission for the mainstream kernel.
Changelog:
- Fix an oops which could occur at unmount time due to non-empty
orphan list. This could be triggered by an earlier error during a
truncate.
- Merge Ted's directory scan speedup heuristic.
- Remove the abort_write() address_space_operation by ensuring that
all prepare_write() callers always call commit_write().
- A number of changes to suit the new 2.4.10 VM and buffer-layer design.
-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 6:01 ext3-2.4-0.9.10 Andrew Morton
@ 2001-09-24 12:16 ` Santiago Garcia Mantinan
2001-09-24 17:47 ` ext3-2.4-0.9.10 Andreas Dilger
2001-09-24 17:14 ` ext3-2.4-0.9.10 Robert Love
2001-09-24 17:16 ` ext3-2.4-0.9.10 Tom Rini
2 siblings, 1 reply; 11+ messages in thread
From: Santiago Garcia Mantinan @ 2001-09-24 12:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
Hi!
After testing this new patch on 2.4.10 I have detected a problem when trying
to convert mounted partitions to ext3.
The problem is that on umounting the partition, with 2.4.10 kernel, the
has_journal feature mark is removed, so the device is not detected as having
journal on next mount.
Creating journals (converting to ext3) on partitions that are not mounted
works ok.
Following is a practical demonstration of this in case I didn't explain
myself well...
pul:/# grep var /etc/fstab
/dev/hda7 /var auto rw 0 2
pul:/# mount|grep var
/dev/hda7 on /var type ext2 (rw)
pul:~# tune2fs -l /dev/hda7|grep -i journal
pul:~# ls -l /var/.journal
ls: /var/.journal: No such file or directory
pul:~# tune2fs -j /dev/hda7
tune2fs 1.24a (02-Sep-2001)
Creating journal inode: done
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
pul:~# tune2fs -l /dev/hda7|grep -i journal
Filesystem features: has_journal filetype sparse_super
Journal UUID: <none>
Journal inode: 12
Journal device: 0x0000
pul:~# ls -l /var/.journal
-rw------- 1 root root 8388608 sep 24 13:39 /var/.journal
pul:/# umount /var
pul:/# tune2fs -l /dev/hda7|grep -i journal
pul:/# mount /var
pul:/# mount|grep var
/dev/hda7 on /var type ext2 (rw)
pul:/# ls -l /var/.journal
-rw------- 1 root root 8388608 Sep 24 13:39 /var/.journal
Regards...
--
Manty/BestiaTester -> http://manty.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 6:01 ext3-2.4-0.9.10 Andrew Morton
2001-09-24 12:16 ` ext3-2.4-0.9.10 Santiago Garcia Mantinan
@ 2001-09-24 17:14 ` Robert Love
2001-09-24 17:16 ` ext3-2.4-0.9.10 Tom Rini
2 siblings, 0 replies; 11+ messages in thread
From: Robert Love @ 2001-09-24 17:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
On Mon, 2001-09-24 at 02:01, Andrew Morton wrote:
> An ext3 patch against linux 2.4.10 is at
Any chance of a patch for Alan's tree?
I have a patch for 2.4.9-ac15 that is ext 0.9.9 + ted's speedup, but I
wouldn't feel comfortable trying to diff that against a patch for
Linus's tree.
Let me know if I can help. Maybe Alan can merge 0.9.9 -- its been
running solid here since release.
--
Robert M. Love
rml at ufl.edu
rml at tech9.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 6:01 ext3-2.4-0.9.10 Andrew Morton
2001-09-24 12:16 ` ext3-2.4-0.9.10 Santiago Garcia Mantinan
2001-09-24 17:14 ` ext3-2.4-0.9.10 Robert Love
@ 2001-09-24 17:16 ` Tom Rini
2001-09-24 17:19 ` ext3-2.4-0.9.10 Andrew Morton
2001-09-24 17:21 ` ext3-2.4-0.9.10 Stephen C. Tweedie
2 siblings, 2 replies; 11+ messages in thread
From: Tom Rini @ 2001-09-24 17:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml, ext3-users@redhat.com
On Sun, Sep 23, 2001 at 11:01:51PM -0700, Andrew Morton wrote:
> An ext3 patch against linux 2.4.10 is at
>
> http://www.uow.edu.au/~andrewm/linux/ext3/
>
> This patch is *lightly tested* - ie, it boots and does stuff.
> The changes to ext3 are small, but the kernel which it patches
> has recently changed a lot. If you're cautious, please wait
> a couple of days.
This doesn't compile for me:
gcc -D__KERNEL__ -I/home/trini/work/kernel/testing/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DEXPORT_SYMTAB -c jbd-kernel.c
jbd-kernel.c: In function `b_list_to_string':
jbd-kernel.c:209: `BUF_PROTECTED' undeclared (first use in this function)
jbd-kernel.c:209: (Each undeclared identifier is reported only once
jbd-kernel.c:209: for each function it appears in.)
make[3]: *** [jbd-kernel.o] Error 1
make[3]: Leaving directory `/home/trini/work/kernel/testing/linuxppc_2_4_devel/fs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/trini/work/kernel/testing/linuxppc_2_4_devel/fs'
make[1]: *** [_dir_fs] Error 2
make[1]: Leaving directory `/home/trini/work/kernel/testing/linuxppc_2_4_devel'
$ grep BUF_PROTECTED ext3-2.4-0.9.10-2410
+ case BUF_PROTECTED: return "BUF_PROTECTED";
$ less .config
...
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_BUFFER_DEBUG=y
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 17:16 ` ext3-2.4-0.9.10 Tom Rini
@ 2001-09-24 17:19 ` Andrew Morton
2001-09-24 17:29 ` ext3-2.4-0.9.10 Tom Rini
2001-09-24 17:21 ` ext3-2.4-0.9.10 Stephen C. Tweedie
1 sibling, 1 reply; 11+ messages in thread
From: Andrew Morton @ 2001-09-24 17:19 UTC (permalink / raw)
To: Tom Rini; +Cc: lkml, ext3-users@redhat.com
Tom Rini wrote:
>
> On Sun, Sep 23, 2001 at 11:01:51PM -0700, Andrew Morton wrote:
>
> > An ext3 patch against linux 2.4.10 is at
> >
> > http://www.uow.edu.au/~andrewm/linux/ext3/
> >
> > This patch is *lightly tested* - ie, it boots and does stuff.
> > The changes to ext3 are small, but the kernel which it patches
> > has recently changed a lot. If you're cautious, please wait
> > a couple of days.
>
> This doesn't compile for me:
> gcc -D__KERNEL__ -I/home/trini/work/kernel/testing/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DEXPORT_SYMTAB -c jbd-kernel.c
> jbd-kernel.c: In function `b_list_to_string':
> jbd-kernel.c:209: `BUF_PROTECTED' undeclared (first use in this function)
Yes, sorry. Delete line 209 of jdb-kernel.c, or don't compile with
buffer-debug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 17:16 ` ext3-2.4-0.9.10 Tom Rini
2001-09-24 17:19 ` ext3-2.4-0.9.10 Andrew Morton
@ 2001-09-24 17:21 ` Stephen C. Tweedie
1 sibling, 0 replies; 11+ messages in thread
From: Stephen C. Tweedie @ 2001-09-24 17:21 UTC (permalink / raw)
To: Tom Rini; +Cc: Andrew Morton, lkml, ext3-users@redhat.com
Hi,
On Mon, Sep 24, 2001 at 10:16:02AM -0700, Tom Rini wrote:
> > The changes to ext3 are small, but the kernel which it patches
> > has recently changed a lot. If you're cautious, please wait
> > a couple of days.
>
> This doesn't compile for me:
I just checked in a fix.
> jbd-kernel.c:209: `BUF_PROTECTED' undeclared (first use in this function)
Simply remove that line, or undefine the CONFIG_BUFFER_DEBUG.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 17:19 ` ext3-2.4-0.9.10 Andrew Morton
@ 2001-09-24 17:29 ` Tom Rini
0 siblings, 0 replies; 11+ messages in thread
From: Tom Rini @ 2001-09-24 17:29 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml, ext3-users@redhat.com
On Mon, Sep 24, 2001 at 10:19:46AM -0700, Andrew Morton wrote:
> Tom Rini wrote:
> >
> > On Sun, Sep 23, 2001 at 11:01:51PM -0700, Andrew Morton wrote:
> >
> > > An ext3 patch against linux 2.4.10 is at
> > >
> > > http://www.uow.edu.au/~andrewm/linux/ext3/
> > >
> > > This patch is *lightly tested* - ie, it boots and does stuff.
> > > The changes to ext3 are small, but the kernel which it patches
> > > has recently changed a lot. If you're cautious, please wait
> > > a couple of days.
> >
> > This doesn't compile for me:
> > gcc -D__KERNEL__ -I/home/trini/work/kernel/testing/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DEXPORT_SYMTAB -c jbd-kernel.c
> > jbd-kernel.c: In function `b_list_to_string':
> > jbd-kernel.c:209: `BUF_PROTECTED' undeclared (first use in this function)
>
> Yes, sorry. Delete line 209 of jdb-kernel.c, or don't compile with
> buffer-debug.
Okay. BTW, my ppc box is at 26 days with ext3-0.9.6-2.4.9 right now, so
hopefully all the endian bugs are gone.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 12:16 ` ext3-2.4-0.9.10 Santiago Garcia Mantinan
@ 2001-09-24 17:47 ` Andreas Dilger
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Dilger @ 2001-09-24 17:47 UTC (permalink / raw)
To: Santiago Garcia Mantinan; +Cc: Andrew Morton, lkml
On Sep 24, 2001 14:16 +0200, Santiago Garcia Mantinan wrote:
> After testing this new patch on 2.4.10 I have detected a problem when trying
> to convert mounted partitions to ext3.
>
> The problem is that on umounting the partition, with 2.4.10 kernel, the
> has_journal feature mark is removed, so the device is not detected as having
> journal on next mount.
>
> Creating journals (converting to ext3) on partitions that are not mounted
> works ok.
>
> Following is a practical demonstration of this in case I didn't explain
> myself well...
>
> pul:/# grep var /etc/fstab
> /dev/hda7 /var auto rw 0 2
> pul:/# mount|grep var
> /dev/hda7 on /var type ext2 (rw)
> pul:~# tune2fs -l /dev/hda7|grep -i journal
> pul:~# ls -l /var/.journal
> ls: /var/.journal: No such file or directory
> pul:~# tune2fs -j /dev/hda7
> tune2fs 1.24a (02-Sep-2001)
> Creating journal inode: done
> This filesystem will be automatically checked every 20 mounts or
> 180 days, whichever comes first. Use tune2fs -c or -i to override.
> pul:~# tune2fs -l /dev/hda7|grep -i journal
> Filesystem features: has_journal filetype sparse_super
> Journal UUID: <none>
> Journal inode: 12
> Journal device: 0x0000
> pul:~# ls -l /var/.journal
> -rw------- 1 root root 8388608 sep 24 13:39 /var/.journal
> pul:/# umount /var
> pul:/# tune2fs -l /dev/hda7|grep -i journal
> pul:/# mount /var
> pul:/# mount|grep var
> /dev/hda7 on /var type ext2 (rw)
> pul:/# ls -l /var/.journal
> -rw------- 1 root root 8388608 Sep 24 13:39 /var/.journal
This is because the block devices have moved to page cache, but the
internal filesystem code is still using the buffer cache - this means
that changes from user space are not seen in the kernel, and are lost
the next time that the superblock is written by the kernel.
When the block-devices-in-pagecache issue came up last, I had advocated
waiting for 2.5 to do this so that we can move ext2/ext3 into pagecache
as well (the superblock at least). This could be done by changing the
bread/getblk stuff to be backed by pagecache as well, but nobody has
has time to do this yet.
For now, you need to do the tune2fs on an unmounted filesystem. Since
this does not immediately "convert" the mounted filesystem to ext3
right away (you need to remount it as ext3 to get journaling to start),
then you need to unmount the fs at some time anyways. It _does_ pose a
bit of a problem for converting the root fs, however - you will need to
boot from a rescue disk to run tune2fs on the unmounted filesystem, but
it is a one-time effort for the root fs, and it also ensures that you
have a rescue disk you can use in case of problems ;-).
The presence or absence of the ".journal" file does not indicate whether
or not the filesystem is journaled. It is "tune2fs -l" which matters.
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
@ 2001-09-24 21:35 J Troy Piper
2001-09-24 21:54 ` ext3-2.4-0.9.10 Andrew Morton
0 siblings, 1 reply; 11+ messages in thread
From: J Troy Piper @ 2001-09-24 21:35 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
[-- Attachment #0: Type: message/rfc822, Size: 1520 bytes --]
From: J Troy Piper <jtp@dok.org>
To: Andrew Morton <akpm@zip.com.au>
Cc: lkml <linux-kernel@vger.kernel.org>, "ext3-users@redhat.com" <ext3-users@redhat.com>
Subject: Re: ext3-2.4-0.9.10
Date: Mon, 24 Sep 2001 16:18:29 -0500
Message-ID: <20010924161829.A244@dok.org>
On Sun, Sep 23, 2001 at 11:01:51PM -0700, Andrew Morton wrote:
> An ext3 patch against linux 2.4.10 is at
>
> http://www.uow.edu.au/~andrewm/linux/ext3/
>
> This patch is *lightly tested* - ie, it boots and does stuff.
> The changes to ext3 are small, but the kernel which it patches
> has recently changed a lot. If you're cautious, please wait
> a couple of days.
>
> The patch retains the buffer-tracing code. This will soon be
> broken out into a separate patch to make ext3 suitable for
> submission for the mainstream kernel.
>
Hey Andrew,
Any more progress on my journal_revoke BUG? Strangely enough, I've been
mounting the drives as ext2 to try and avoid the errors, but I *STILL* hit
the BUG when untar'ing a large file, or compiling a large file (ie. kernel
source), which is somewhat unnerving.
---
/************************/
/* J. Troy Piper */
/* <jtp@dok.org> */
/* Ignotum per Ignotius */
/************************/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 21:35 ext3-2.4-0.9.10 J Troy Piper
@ 2001-09-24 21:54 ` Andrew Morton
2001-09-24 22:39 ` ext3-2.4-0.9.10 Andreas Dilger
0 siblings, 1 reply; 11+ messages in thread
From: Andrew Morton @ 2001-09-24 21:54 UTC (permalink / raw)
To: J Troy Piper; +Cc: lkml
J Troy Piper wrote:
>
> Hey Andrew,
>
> Any more progress on my journal_revoke BUG? Strangely enough, I've been
> mounting the drives as ext2 to try and avoid the errors, but I *STILL* hit
> the BUG when untar'ing a large file, or compiling a large file (ie. kernel
> source), which is somewhat unnerving.
That should have been fixed in 0.9.9????
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ext3-2.4-0.9.10
2001-09-24 21:54 ` ext3-2.4-0.9.10 Andrew Morton
@ 2001-09-24 22:39 ` Andreas Dilger
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Dilger @ 2001-09-24 22:39 UTC (permalink / raw)
To: Andrew Morton; +Cc: J Troy Piper, lkml
On Sep 24, 2001 14:54 -0700, Andrew Morton wrote:
> > Any more progress on my journal_revoke BUG? Strangely enough, I've been
> > mounting the drives as ext2 to try and avoid the errors, but I *STILL* hit
> > the BUG when untar'ing a large file, or compiling a large file (ie. kernel
> > source), which is somewhat unnerving.
>
> That should have been fixed in 0.9.9????
If the problem happens under ext2 as well, it is not a journal_revoke BUG
(or at least it shouldn't be...). Can you post the OOPS output (after
running it through ksymoops of course) WHEN RUNNING WITH EXT2. It may be
that there is a bug lurking somewhere else also, and you just happen to
be lucky enough to find both.
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
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-09-24 22:40 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-24 6:01 ext3-2.4-0.9.10 Andrew Morton
2001-09-24 12:16 ` ext3-2.4-0.9.10 Santiago Garcia Mantinan
2001-09-24 17:47 ` ext3-2.4-0.9.10 Andreas Dilger
2001-09-24 17:14 ` ext3-2.4-0.9.10 Robert Love
2001-09-24 17:16 ` ext3-2.4-0.9.10 Tom Rini
2001-09-24 17:19 ` ext3-2.4-0.9.10 Andrew Morton
2001-09-24 17:29 ` ext3-2.4-0.9.10 Tom Rini
2001-09-24 17:21 ` ext3-2.4-0.9.10 Stephen C. Tweedie
-- strict thread matches above, loose matches on Subject: below --
2001-09-24 21:35 ext3-2.4-0.9.10 J Troy Piper
2001-09-24 21:54 ` ext3-2.4-0.9.10 Andrew Morton
2001-09-24 22:39 ` ext3-2.4-0.9.10 Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox