version 1.1, 2012/05/08 23:53:26 |
version 1.2, 2014/02/06 10:57:12 |
Line 45 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 45 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <sys/namei.h> |
#include <sys/namei.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/vnode.h> |
#include <sys/vnode.h> |
|
#include <sys/fstrans.h> |
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <miscfs/genfs/genfs.h> |
#include <miscfs/genfs/genfs.h> |
Line 176 genfs_insane_rename(void *v, |
|
Line 177 genfs_insane_rename(void *v, |
|
struct componentname *fcnp = ap->a_fcnp; |
struct componentname *fcnp = ap->a_fcnp; |
struct vnode *tdvp = ap->a_tdvp; |
struct vnode *tdvp = ap->a_tdvp; |
struct vnode *tvp = ap->a_tvp; |
struct vnode *tvp = ap->a_tvp; |
|
struct mount *mp = fdvp->v_mount; |
struct componentname *tcnp = ap->a_tcnp; |
struct componentname *tcnp = ap->a_tcnp; |
kauth_cred_t cred; |
kauth_cred_t cred; |
int error; |
int error; |
Line 194 genfs_insane_rename(void *v, |
|
Line 196 genfs_insane_rename(void *v, |
|
KASSERT(fdvp->v_type == VDIR); |
KASSERT(fdvp->v_type == VDIR); |
KASSERT(tdvp->v_type == VDIR); |
KASSERT(tdvp->v_type == VDIR); |
|
|
|
fstrans_start(mp, FSTRANS_SHARED); |
|
|
cred = fcnp->cn_cred; |
cred = fcnp->cn_cred; |
|
|
/* |
/* |
Line 228 genfs_insane_rename(void *v, |
|
Line 232 genfs_insane_rename(void *v, |
|
vrele(fdvp); |
vrele(fdvp); |
vrele(tdvp); |
vrele(tdvp); |
|
|
|
fstrans_done(mp); |
|
|
return error; |
return error; |
} |
} |
|
|