Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdport.c
Show First 20 Lines • Show All 6,329 Lines • ▼ Show 20 Lines | nfsvno_allocate(struct vnode *vp, off_t off, off_t len, struct ucred *cred, | ||||
error = 0; | error = 0; | ||||
/* | /* | ||||
* Do the actual VOP_ALLOCATE(), looping a reasonable number of | * Do the actual VOP_ALLOCATE(), looping a reasonable number of | ||||
* times to achieve completion. | * times to achieve completion. | ||||
*/ | */ | ||||
trycnt = 0; | trycnt = 0; | ||||
while (error == 0 && len > 0 && trycnt++ < 20) | while (error == 0 && len > 0 && trycnt++ < 20) | ||||
error = VOP_ALLOCATE(vp, &off, &len); | error = VOP_ALLOCATE(vp, &off, &len, | ||||
SPACECTL_F_CANEXTEND, curthread->td_ucred); | |||||
if (error == 0 && len > 0) | if (error == 0 && len > 0) | ||||
error = NFSERR_IO; | error = NFSERR_IO; | ||||
NFSEXITCODE(error); | NFSEXITCODE(error); | ||||
return (error); | return (error); | ||||
} | } | ||||
/* | /* | ||||
* Get Extended Atribute vnode op into an mbuf list. | * Get Extended Atribute vnode op into an mbuf list. | ||||
▲ Show 20 Lines • Show All 383 Lines • Show Last 20 Lines |