lkml.org 
[lkml]   [2004]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mount no tmpfs confusion
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@veritas.com>

--- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.023 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site