svn commit: r230252 - head/sys/fs/tmpfs

Jaakko Heinonen jh at FreeBSD.org
Tue Jan 17 17:30:03 UTC 2012


On 2012-01-17, Kevin Lo wrote:
>   Return EOPNOTSUPP since we only support update mounts for NFS export.
>   
> @@ -150,8 +150,12 @@ tmpfs_mount(struct mount *mp)
>  		return (EINVAL);
>  
>  	if (mp->mnt_flag & MNT_UPDATE) {
> +		/*
> +		 * Only support update mounts for NFS export.
> +		 */
>  		if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
>  			return (0);
> +		return (EOPNOTSUPP);
>  	}

This doesn't look correct. As long as the option list includes the
"export" option, all options are accepted. An example:

# mount -u -o ro /mnt
mount: tmpfs : Operation not supported
# mount -u -o ro,export /mnt
#

-- 
Jaakko


More information about the svn-src-head mailing list