Skip to contentSkip to conversation

Check the mtd device in do_emergency_remount()

PATCH In review Michael Trimarchi 2 participants 2 messages Apr 21, 2008 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Check the mtd device in do_emergency_remount()

Allow superblocks managed by the mtd layer to be remounted.

Inviato da Yahoo! Mail.
La casella di posta intelligente.
http://it.docs.yahoo.com/mail/overview/index.html

[PATCH] Check the mtd device in do_emergency_remount().

Allow superblocks managed by the mtd layer to be remounted.

---
 fs/super.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/super.c +2 -1
index 09008db..2f8f924 100644
@@ -627,7 +627,8 @@ static void do_emergency_remount(unsigned long foo)
 		sb->s_count++;
 		spin_unlock(&sb_lock);
 		down_read(&sb->s_umount);
-		if (sb->s_root && sb->s_bdev && !(sb->s_flags & MS_RDONLY)) {
+		if (sb->s_root && (sb->s_bdev || sb->s_mtd)
+		   && !(sb->s_flags & MS_RDONLY)) {
 			/*
 			 * ->remount_fs needs lock_kernel().
 			 *
Signature · 1 line
1.5.3.6
#1 lore raw
Quoted 1 line · Michael Trimarchi

Allow superblocks managed by the mtd layer to be remounted.

Please just rip out do_emergency_remount entirely. It's the equivalent to and attempted full-filesystem revoke and just can't work.