From: Miklos Szeredi The read-only flag showing got broken by the ro-bind patches going in and out of -mm. Signed-off-by: Miklos Szeredi --- fs/namespace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux/fs/namespace.c =================================================================== --- linux.orig/fs/namespace.c 2008-03-13 20:45:15.000000000 +0100 +++ linux/fs/namespace.c 2008-03-13 20:45:49.000000000 +0100 @@ -789,9 +789,9 @@ static int show_mountinfo(struct seq_fil seq_dentry(m, mnt->mnt_root, " \t\n\\"); seq_putc(m, ' '); seq_path(m, &mnt_path, " \t\n\\"); + seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); show_mnt_opts(m, mnt); - seq_putc(m, ' '); - seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); + seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); show_sb_opts(m, sb); if (sb->s_op->show_options) err = sb->s_op->show_options(m, mnt); -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/