[BACK]Return to vfs_syscalls.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/vfs_syscalls.c between version 1.477 and 1.478

version 1.477, 2014/03/22 08:15:25 version 1.478, 2014/04/04 06:47:02
Line 485  do_sys_mount(struct lwp *l, struct vfsop
Line 485  do_sys_mount(struct lwp *l, struct vfsop
                 if (data_len == 0) {                  if (data_len == 0) {
                         /* No length supplied, use default for filesystem */                          /* No length supplied, use default for filesystem */
                         data_len = vfsops->vfs_min_mount_data;                          data_len = vfsops->vfs_min_mount_data;
                         if (data_len > VFS_MAX_MOUNT_DATA) {  
                                 error = EINVAL;  
                                 goto done;  
                         }  
                         /*                          /*
                          * Hopefully a longer buffer won't make copyin() fail.                           * Hopefully a longer buffer won't make copyin() fail.
                          * For compatibility with 3.0 and earlier.                           * For compatibility with 3.0 and earlier.
Line 497  do_sys_mount(struct lwp *l, struct vfsop
Line 494  do_sys_mount(struct lwp *l, struct vfsop
                             && data_len < sizeof (struct mnt_export_args30))                              && data_len < sizeof (struct mnt_export_args30))
                                 data_len = sizeof (struct mnt_export_args30);                                  data_len = sizeof (struct mnt_export_args30);
                 }                  }
                   if (data_len > VFS_MAX_MOUNT_DATA) {
                           error = EINVAL;
                           goto done;
                   }
                 data_buf = kmem_alloc(data_len, KM_SLEEP);                  data_buf = kmem_alloc(data_len, KM_SLEEP);
   
                 /* NFS needs the buffer even for mnt_getargs .... */                  /* NFS needs the buffer even for mnt_getargs .... */

Legend:
Removed from v.1.477  
changed lines
  Added in v.1.478

CVSweb <webmaster@jp.NetBSD.org>