Lines Matching defs:fsap
465 nfs_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t ctx)
475 if (VFSATTR_IS_ACTIVE(fsap, f_bsize) ||
476 VFSATTR_IS_ACTIVE(fsap, f_iosize) ||
477 VFSATTR_IS_ACTIVE(fsap, f_blocks) ||
478 VFSATTR_IS_ACTIVE(fsap, f_bfree) ||
479 VFSATTR_IS_ACTIVE(fsap, f_bavail) ||
480 VFSATTR_IS_ACTIVE(fsap, f_bused) ||
481 VFSATTR_IS_ACTIVE(fsap, f_files) ||
482 VFSATTR_IS_ACTIVE(fsap, f_ffree)) {
514 VFSATTR_RETURN(fsap, f_iosize, nfs_iosize);
515 VFSATTR_RETURN(fsap, f_bsize, nmp->nm_fsattr.nfsa_bsize);
518 VFSATTR_RETURN(fsap, f_blocks, nmp->nm_fsattr.nfsa_space_total / bsize);
520 VFSATTR_RETURN(fsap, f_bfree, nmp->nm_fsattr.nfsa_space_free / bsize);
522 VFSATTR_RETURN(fsap, f_bavail, nmp->nm_fsattr.nfsa_space_avail / bsize);
525 VFSATTR_RETURN(fsap, f_bused,
529 VFSATTR_RETURN(fsap, f_files, nmp->nm_fsattr.nfsa_files_total);
531 VFSATTR_RETURN(fsap, f_ffree, nmp->nm_fsattr.nfsa_files_free);
535 if (VFSATTR_IS_ACTIVE(fsap, f_capabilities)) {
592 fsap->f_capabilities.capabilities[VOL_CAPABILITIES_FORMAT] =
608 fsap->f_capabilities.valid[VOL_CAPABILITIES_FORMAT] =
651 fsap->f_capabilities.capabilities[VOL_CAPABILITIES_INTERFACES] =
668 fsap->f_capabilities.valid[VOL_CAPABILITIES_INTERFACES] =
686 fsap->f_capabilities.capabilities[VOL_CAPABILITIES_RESERVED1] = 0;
687 fsap->f_capabilities.valid[VOL_CAPABILITIES_RESERVED1] = 0;
689 fsap->f_capabilities.capabilities[VOL_CAPABILITIES_RESERVED2] = 0;
690 fsap->f_capabilities.valid[VOL_CAPABILITIES_RESERVED2] = 0;
692 VFSATTR_SET_SUPPORTED(fsap, f_capabilities);
696 if (VFSATTR_IS_ACTIVE(fsap, f_attributes)) {
697 fsap->f_attributes.validattr.commonattr = 0;
698 fsap->f_attributes.validattr.volattr =
700 fsap->f_attributes.validattr.dirattr = 0;
701 fsap->f_attributes.validattr.fileattr = 0;
702 fsap->f_attributes.validattr.forkattr = 0;
704 fsap->f_attributes.nativeattr.commonattr = 0;
705 fsap->f_attributes.nativeattr.volattr =
707 fsap->f_attributes.nativeattr.dirattr = 0;
708 fsap->f_attributes.nativeattr.fileattr = 0;
709 fsap->f_attributes.nativeattr.forkattr = 0;
711 VFSATTR_SET_SUPPORTED(fsap, f_attributes);