Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_default.c
Show First 20 Lines • Show All 968 Lines • ▼ Show 20 Lines | #endif | ||||
error = VOP_GETATTR(vp, vap, td->td_ucred); | error = VOP_GETATTR(vp, vap, td->td_ucred); | ||||
if (error != 0) | if (error != 0) | ||||
goto out; | goto out; | ||||
fsize = vap->va_size; | fsize = vap->va_size; | ||||
iosize = vap->va_blocksize; | iosize = vap->va_blocksize; | ||||
if (iosize == 0) | if (iosize == 0) | ||||
iosize = BLKDEV_IOSIZE; | iosize = BLKDEV_IOSIZE; | ||||
if (iosize > MAXPHYS) | if (iosize > maxphys) | ||||
iosize = MAXPHYS; | iosize = maxphys; | ||||
buf = malloc(iosize, M_TEMP, M_WAITOK); | buf = malloc(iosize, M_TEMP, M_WAITOK); | ||||
#ifdef __notyet__ | #ifdef __notyet__ | ||||
/* | /* | ||||
* Check if the filesystem sets f_maxfilesize; if not use | * Check if the filesystem sets f_maxfilesize; if not use | ||||
* VOP_SETATTR to perform the check. | * VOP_SETATTR to perform the check. | ||||
*/ | */ | ||||
sfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); | sfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); | ||||
▲ Show 20 Lines • Show All 608 Lines • Show Last 20 Lines |