From: Chris Mason <mason@suse.com>
To: Ed Tomlinson <tomlins@cam.org>, reiserfs-list@namesys.com
Cc: linux-lvm@sistina.com
Subject: [linux-lvm] Re: [reiserfs-list] mounting reiserfs snapshot fails
Date: Sun, 29 Apr 2001 21:48:03 -0400 [thread overview]
Message-ID: <688980000.988595283@tiny> (raw)
In-Reply-To: <01041313295800.02991@oscar>
On Friday, April 13, 2001 01:29:58 PM -0400 Ed Tomlinson <tomlins@cam.org>
wrote:
> Hi,
>
> Using debian sid, 2.4.3-ac5, lvm 0.91 beta7, with the vfs locking
> patch applied I get:
>
> oscar# mount /dev/lv/snap /snap -t reiserfs -oro
> mount: wrong fs type, bad option, bad superblock on /dev/lv/snap,
> or too many mounted file systems
>
> When trying to mount the snap shot. It was created with:
> lvcreate -L 1G -s -n snap /dev/lv/root /dev/hdg1
> without problems
I'm not sure what you're doing that I wasn't, but I've tried a bunch of
times to reproduce this over the last few weeks. Tonight I finally did ;-)
The bug is that reiserfs needs to try harder to wait for the current
transaction to end. A slight change in the semantics there didn't get
carried into the reiserfs write_super_lockfs call (reiserfs_block_writes
used to be enough on its own).
But, it only hits when LVM can create the snapshot faster than the next
reiserfs writer can commit the transaction, which doesn't happen often for
me.
Anyway, here's a patch (VFS locking patch for 2.4.4 will follow in a sec).
-chris
diff -Nru a/fs/reiserfs/super.c b/fs/reiserfs/super.c
--- a/fs/reiserfs/super.c Sun Apr 29 20:44:38 2001
+++ b/fs/reiserfs/super.c Sun Apr 29 20:44:38 2001
@@ -80,7 +80,7 @@
reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1);
journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB (s));
reiserfs_block_writes(&th) ;
- journal_end(&th, s, 1) ;
+ journal_end_sync(&th, s, 1) ;
}
s->s_dirt = dirty;
unlock_kernel() ;
next prev parent reply other threads:[~2001-04-30 1:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-13 17:29 [linux-lvm] mounting reiserfs snapshot fails Ed Tomlinson
2001-04-13 20:36 ` Chris Mason
2001-04-13 22:42 ` Ed Tomlinson
2001-04-14 0:23 ` Andreas Dilger
2001-04-14 0:53 ` [reiserfs-list] " Chris Mason
2001-04-18 1:38 ` Ed Tomlinson
2001-04-30 1:48 ` Chris Mason [this message]
2001-04-30 4:23 ` [linux-lvm] Re: [reiserfs-list] " Ed Tomlinson
2001-04-30 4:31 ` Ed Tomlinson
2001-04-30 11:43 ` Chris Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=688980000.988595283@tiny \
--to=mason@suse.com \
--cc=linux-lvm@sistina.com \
--cc=reiserfs-list@namesys.com \
--cc=tomlins@cam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).