version 1.33, 2014/08/07 08:24:23 |
version 1.33.4.4, 2017/08/28 17:53:05 |
Line 173 efs_getattr(void *v) |
|
Line 173 efs_getattr(void *v) |
|
struct vop_getattr_args /* { |
struct vop_getattr_args /* { |
const struct vnodeop_desc *a_desc; |
const struct vnodeop_desc *a_desc; |
struct vnode *a_vp; |
struct vnode *a_vp; |
struct vattr *a_vap; |
struct vattr *a_vap; |
struct ucred *a_cred; |
struct ucred *a_cred; |
} */ *ap = v; |
} */ *ap = v; |
|
|
Line 222 efs_getattr(void *v) |
|
Line 222 efs_getattr(void *v) |
|
vap->va_bytes = eip->ei_size; |
vap->va_bytes = eip->ei_size; |
/* vap->va_filerev = */ |
/* vap->va_filerev = */ |
/* vap->va_vaflags = */ |
/* vap->va_vaflags = */ |
|
|
return (0); |
return (0); |
} |
} |
|
|
Line 237 efs_read(void *v) |
|
Line 237 efs_read(void *v) |
|
struct vop_read_args /* { |
struct vop_read_args /* { |
const struct vnodeop_desc *a_desc; |
const struct vnodeop_desc *a_desc; |
struct vnode *a_vp; |
struct vnode *a_vp; |
struct uio *a_uio; |
struct uio *a_uio; |
int a_ioflag; |
int a_ioflag; |
struct ucred *a_cred; |
struct ucred *a_cred; |
} */ *ap = v; |
} */ *ap = v; |
Line 294 efs_readdir(void *v) |
|
Line 294 efs_readdir(void *v) |
|
{ |
{ |
struct vop_readdir_args /* { |
struct vop_readdir_args /* { |
const struct vnodeop_desc *a_desc; |
const struct vnodeop_desc *a_desc; |
struct vnode *a_vp; |
struct vnode *a_vp; |
struct uio *a_uio; |
struct uio *a_uio; |
struct ucred *a_cred; |
struct ucred *a_cred; |
int *a_eofflag; |
int *a_eofflag; |
off_t **a_cookies; |
off_t **a_cookies; |
Line 420 efs_readdir(void *v) |
|
Line 420 efs_readdir(void *v) |
|
err = uiomove(dp, s, uio); |
err = uiomove(dp, s, uio); |
if (err) { |
if (err) { |
brelse(bp, 0); |
brelse(bp, 0); |
goto exit_err; |
goto exit_err; |
} |
} |
|
|
offset += s; |
offset += s; |
Line 463 efs_readdir(void *v) |
|
Line 463 efs_readdir(void *v) |
|
free(cookies, M_TEMP); |
free(cookies, M_TEMP); |
|
|
free(dp, M_EFSTMP); |
free(dp, M_EFSTMP); |
|
|
return (err); |
return (err); |
} |
} |
|
|
Line 560 efs_readlink(void *v) |
|
Line 560 efs_readlink(void *v) |
|
static int |
static int |
efs_inactive(void *v) |
efs_inactive(void *v) |
{ |
{ |
struct vop_inactive_args /* { |
struct vop_inactive_v2_args /* { |
const struct vnodeop_desc *a_desc; |
const struct vnodeop_desc *a_desc; |
struct vnode *a_vp; |
struct vnode *a_vp; |
bool *a_recycle |
bool *a_recycle |
Line 568 efs_inactive(void *v) |
|
Line 568 efs_inactive(void *v) |
|
struct efs_inode *eip = EFS_VTOI(ap->a_vp); |
struct efs_inode *eip = EFS_VTOI(ap->a_vp); |
|
|
*ap->a_recycle = (eip->ei_mode == 0); |
*ap->a_recycle = (eip->ei_mode == 0); |
VOP_UNLOCK(ap->a_vp); |
|
|
|
return (0); |
return (0); |
} |
} |
Line 576 efs_inactive(void *v) |
|
Line 575 efs_inactive(void *v) |
|
static int |
static int |
efs_reclaim(void *v) |
efs_reclaim(void *v) |
{ |
{ |
struct vop_reclaim_args /* { |
struct vop_reclaim_v2_args /* { |
const struct vnodeop_desc *a_desc; |
const struct vnodeop_desc *a_desc; |
struct vnode *a_vp; |
struct vnode *a_vp; |
} */ *ap = v; |
} */ *ap = v; |
struct vnode *vp = ap->a_vp; |
struct vnode *vp = ap->a_vp; |
struct efs_inode *eip = EFS_VTOI(vp); |
struct efs_inode *eip = EFS_VTOI(vp); |
|
|
vcache_remove(vp->v_mount, &eip->ei_number, sizeof(eip->ei_number)); |
VOP_UNLOCK(vp); |
|
|
genfs_node_destroy(vp); |
genfs_node_destroy(vp); |
pool_put(&efs_inode_pool, eip); |
pool_put(&efs_inode_pool, eip); |
vp->v_data = NULL; |
vp->v_data = NULL; |
Line 622 efs_bmap(void *v) |
|
Line 622 efs_bmap(void *v) |
|
} |
} |
} |
} |
|
|
KASSERT(!found || (found && ret == 0)); |
KASSERT(!found || ret == 0); |
|
|
if (!found) { |
if (!found) { |
EFS_DPRINTF(("efs_bmap: ap->a_bn not in extents\n")); |
EFS_DPRINTF(("efs_bmap: ap->a_bn not in extents\n")); |
Line 736 efs_pathconf(void *v) |
|
Line 736 efs_pathconf(void *v) |
|
/* IRIX 4 values */ |
/* IRIX 4 values */ |
switch (ap->a_name) { |
switch (ap->a_name) { |
case _PC_LINK_MAX: |
case _PC_LINK_MAX: |
*ap->a_retval = 30000; |
*ap->a_retval = 30000; |
break; |
break; |
case _PC_NAME_MAX: |
case _PC_NAME_MAX: |
*ap->a_retval = 255; |
*ap->a_retval = 255; |