linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No SysRq remount because sb->s_bdev is NULL
@ 2012-07-28 13:41 Florian Albrechtskirchinger
  2012-07-28 13:46 ` Andreas Philipp
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Albrechtskirchinger @ 2012-07-28 13:41 UTC (permalink / raw)
  To: btrfs

Hi,

During a SysRq emergency remount Btrfs mounts are not remounted. I tracked the 
issue down to this line in do_emergency_remount() in fs/super.c:
if (sb->s_root && sb->s_bdev && (sb->s_flags & MS_BORN) &&
	!(sb->s_flags & MS_RDONLY))
s_bdev is NULL for Btrfs super blocks and subsequently do_remount_sb() is 
never called. I couldn't think of a solution, besides resorting to an ugly 
strcmp(sb->s_type->name, "btrfs"), without adding a field to struct super_block 
or similar changes.
Thoughts?

    Flo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-28 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-28 13:41 No SysRq remount because sb->s_bdev is NULL Florian Albrechtskirchinger
2012-07-28 13:46 ` Andreas Philipp
2012-07-28 14:50   ` Florian Albrechtskirchinger
2012-07-28 16:30     ` Andreas Philipp

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).