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

Mikolaj Golub trociny at freebsd.org
Mon Jan 16 11:54:00 UTC 2012


On Mon, 16 Jan 2012 10:25:23 +0000 (UTC) Kevin Lo wrote:

 KL> Author: kevlo
 KL> Date: Mon Jan 16 10:25:22 2012
 KL> New Revision: 230208
 KL> URL: http://svn.freebsd.org/changeset/base/230208

 KL> Log:
 KL>   Add nfs export support to tmpfs(5)
 KL>   
 KL>   Reviewed by:        kib

 KL> Modified:
 KL>   head/sys/fs/tmpfs/tmpfs_vfsops.c

 KL> Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c
 KL> ==============================================================================
 KL> --- head/sys/fs/tmpfs/tmpfs_vfsops.c        Mon Jan 16 09:53:24 2012        (r230207)
 KL> +++ head/sys/fs/tmpfs/tmpfs_vfsops.c        Mon Jan 16 10:25:22 2012        (r230208)
 KL> @@ -150,10 +150,8 @@ tmpfs_mount(struct mount *mp)
 KL>                  return (EINVAL);
 KL>  
 KL>          if (mp->mnt_flag & MNT_UPDATE) {
 KL> -                /* XXX: There is no support yet to update file system
 KL> -                 * settings.  Should be added. */
 KL> -
 KL> -                return EOPNOTSUPP;
 KL> +                if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
 KL> +                        return (0);

Shouldn't we still return EOPNOTSUPP here?

 KL>          }
 KL>  
 KL>          vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);

-- 
Mikolaj Golub


More information about the svn-src-all mailing list