[BACK]Return to ext2fs_vnops.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / ufs / ext2fs

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

Diff for /src/sys/ufs/ext2fs/ext2fs_vnops.c between version 1.115 and 1.116

version 1.115, 2014/11/09 18:23:28 version 1.116, 2015/03/27 17:27:56
Line 727  ext2fs_mkdir(void *v)
Line 727  ext2fs_mkdir(void *v)
                 dirtemplate.dotdot_type = EXT2_FT_DIR;                  dirtemplate.dotdot_type = EXT2_FT_DIR;
         }          }
         dirtemplate.dotdot_name[0] = dirtemplate.dotdot_name[1] = '.';          dirtemplate.dotdot_name[0] = dirtemplate.dotdot_name[1] = '.';
         error = vn_rdwr(UIO_WRITE, tvp, (void *)&dirtemplate,          error = ufs_bufio(UIO_WRITE, tvp, (void *)&dirtemplate,
             sizeof (dirtemplate), (off_t)0, UIO_SYSSPACE,              sizeof (dirtemplate), (off_t)0, IO_NODELOCKED|IO_SYNC,
             IO_NODELOCKED|IO_SYNC, cnp->cn_cred, (size_t *)0, NULL);              cnp->cn_cred, (size_t *)0, NULL);
         if (error) {          if (error) {
                 dp->i_e2fs_nlink--;                  dp->i_e2fs_nlink--;
                 dp->i_flag |= IN_CHANGE;                  dp->i_flag |= IN_CHANGE;
Line 895  ext2fs_symlink(void *v)
Line 895  ext2fs_symlink(void *v)
                         ip->i_flag |= IN_ACCESS;                          ip->i_flag |= IN_ACCESS;
                 uvm_vnp_setsize(vp, len);                  uvm_vnp_setsize(vp, len);
         } else          } else
                 error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,                  error = ufs_bufio(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
                     UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred,                      IO_NODELOCKED, ap->a_cnp->cn_cred, (size_t *)0, NULL);
                     (size_t *)0, NULL);  
 bad:  bad:
         VOP_UNLOCK(vp);          VOP_UNLOCK(vp);
         if (error)          if (error)
Line 927  ext2fs_readlink(void *v)
Line 926  ext2fs_readlink(void *v)
                 uiomove((char *)ip->i_din.e2fs_din->e2di_shortlink, isize, ap->a_uio);                  uiomove((char *)ip->i_din.e2fs_din->e2di_shortlink, isize, ap->a_uio);
                 return (0);                  return (0);
         }          }
         return (VOP_READ(vp, ap->a_uio, 0, ap->a_cred));          return (UFS_BUFRD(vp, ap->a_uio, 0, ap->a_cred));
 }  }
   
 /*  /*

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

CVSweb <webmaster@jp.NetBSD.org>