summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-03-26 20:48:07 +0000
committerjhb <jhb@FreeBSD.org>2008-03-26 20:48:07 +0000
commit20cadd93f0e62b205ad8b98371ad5f8079880f71 (patch)
tree71de85df6a9a377e43abc444ff90f8c25d575297 /sys/gnu
parent259c5e15797f2de45550a037ecc64975a86c4fd9 (diff)
downloadFreeBSD-src-20cadd93f0e62b205ad8b98371ad5f8079880f71.zip
FreeBSD-src-20cadd93f0e62b205ad8b98371ad5f8079880f71.tar.gz
Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
(such as 'atime' vs 'noatime'). The filesystems will always see either 'nofoo' or 'nonofoo', never plain 'foo'. As such, their list of valid mount options should include 'nofoo' instead of 'foo'. With this fix, you can do 'mount -u -o atime' on a FFS filesystem that isn't marked as noatime without getting an error. You can also update a noatime FFS filesystem mounted via mount(2) (e.g. 6.x /sbin/mount binary) to 'atime' using nmount(2) (e.g. 7.x /sbin/mount binary). MFC after: 1 week Reviewed by: crodig
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index 8058ada..cf0bb51 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -117,7 +117,7 @@ static int ext2_check_sb_compat(struct ext2_super_block *es, struct cdev *dev,
static int compute_sb_data(struct vnode * devvp,
struct ext2_super_block * es, struct ext2_sb_info * fs);
-static const char *ext2_opts[] = { "from", "export", "acls", "exec",
+static const char *ext2_opts[] = { "from", "export", "acls", "noexec",
"noatime", "union", "suiddir", "multilabel", "nosymfollow",
"noclusterr", "noclusterw", "force", NULL };
OpenPOWER on IntegriCloud