[PATCH] mount no tmpfs confusion

From: Hugh Dickins
Date: Sun Nov 07 2004 - 11:25:40 EST


My tmpfs superblock changes in 2.6.9 messed up mount -t tmpfs when
CONFIG_TMPFS is not enabled: it wrongly claimed to succeed, and left
the directory unusable, giving "Not a directory" errors thereafter.

Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx>

--- 2.6.10-rc1/mm/shmem.c 2004-10-23 12:44:13.000000000 +0100
+++ linux/mm/shmem.c 2004-11-07 11:50:53.894426456 +0000
@@ -1930,6 +1930,8 @@ static int shmem_fill_super(struct super
sbinfo->free_inodes = inodes;
}
sb->s_xattr = shmem_xattr_handlers;
+#else
+ sb->s_flags |= MS_NOUSER;
#endif

sb->s_maxbytes = SHMEM_MAX_BYTES;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/