Re: 2.6.0-test4-mm3.1 oops with ext3 extended attributes on R/O filesystem

From: Valdis . Kletnieks
Date: Sun Aug 31 2003 - 09:25:59 EST


On Sat, 30 Aug 2003 21:47:51 PDT, Andrew Morton said:

> Thanks. It's a very straightforward bug; I'll fix it with the below patch.

Fix tested in -test4-mm4, program gets a proper '-EROFS', no signs of hanging
locks. Looks good from here, please push to appropriate maintainers..

> A wider question is whether we should have got this far into the filesystem
> code if the fs is mounted read-only. A check right up at the VFS
> setxattr() level might make sense.

Yes, I was a bit surprised at that as well...

> Regardless of that, this fix is needed because journal_start() could fail
> for other reasons.

Good point, and one I hadn't considered...

Attachment: pgp00001.pgp
Description: PGP signature