Lines Matching defs:fsap
438 union_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t context)
467 fsap->f_blocks = VFSATTR_IS_SUPPORTED(&attr, f_blocks) ? attr.f_blocks : 0;
468 fsap->f_bused = VFSATTR_IS_SUPPORTED(&attr, f_bused) ? attr.f_bused : 0;
469 fsap->f_files = VFSATTR_IS_SUPPORTED(&attr, f_files) ? attr.f_files : 0;
471 fsap->f_blocks = 0;
472 fsap->f_bused = 0;
473 fsap->f_files = 0;
488 fsap->f_bsize = attr.f_bsize;
489 VFSATTR_SET_SUPPORTED(fsap, f_bsize);
492 fsap->f_iosize = attr.f_iosize;
493 VFSATTR_SET_SUPPORTED(fsap, f_iosize);
502 fsap->f_bsize = attr.f_bsize;
504 fsap->f_bsize = um->um_uppervp->v_mount->mnt_devblocksize;
505 VFSATTR_RETURN(fsap, f_bsize, attr.f_bsize);
506 if (fsap->f_bsize != lbsize)
507 fsap->f_blocks = fsap->f_blocks * lbsize / attr.f_bsize;
516 fsap->f_blocks += attr.f_blocks;
518 fsap->f_bfree = attr.f_bfree;
520 fsap->f_bavail = attr.f_bavail;
522 fsap->f_bused += attr.f_bused;
524 fsap->f_files += attr.f_files;
526 fsap->f_ffree = attr.f_ffree;
528 VFSATTR_SET_SUPPORTED(fsap, f_bsize);
529 VFSATTR_SET_SUPPORTED(fsap, f_blocks);
530 VFSATTR_SET_SUPPORTED(fsap, f_bfree);
531 VFSATTR_SET_SUPPORTED(fsap, f_bavail);
532 VFSATTR_SET_SUPPORTED(fsap, f_bused);
533 VFSATTR_SET_SUPPORTED(fsap, f_files);
534 VFSATTR_SET_SUPPORTED(fsap, f_ffree);