Changeset View
Changeset View
Standalone View
Standalone View
head/sys/ufs/ffs/ffs_vnops.c
Show First 20 Lines • Show All 1,363 Lines • ▼ Show 20 Lines | vop_deleteextattr { | ||||
IN int a_attrnamespace; | IN int a_attrnamespace; | ||||
IN const char *a_name; | IN const char *a_name; | ||||
IN struct ucred *a_cred; | IN struct ucred *a_cred; | ||||
IN struct thread *a_td; | IN struct thread *a_td; | ||||
}; | }; | ||||
*/ | */ | ||||
{ | { | ||||
struct inode *ip; | struct inode *ip; | ||||
struct fs *fs; | |||||
struct extattr *eap; | struct extattr *eap; | ||||
uint32_t ul; | uint32_t ul; | ||||
int olen, error, i, easize; | int olen, error, i, easize; | ||||
u_char *eae; | u_char *eae; | ||||
void *tmp; | void *tmp; | ||||
ip = VTOI(ap->a_vp); | ip = VTOI(ap->a_vp); | ||||
fs = ITOFS(ip); | |||||
if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) | if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
if (strlen(ap->a_name) == 0) | if (strlen(ap->a_name) == 0) | ||||
return (EINVAL); | return (EINVAL); | ||||
if (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY) | if (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY) | ||||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |