Lines Matching defs:fsap
4843 hfs_vfs_getattr(struct mount *mp, struct vfs_attr *fsap, __unused vfs_context_t context)
4854 VFSATTR_RETURN(fsap, f_objcount, (u_int64_t)hfsmp->vcbFilCnt + (u_int64_t)hfsmp->vcbDirCnt);
4855 VFSATTR_RETURN(fsap, f_filecount, (u_int64_t)hfsmp->vcbFilCnt);
4856 VFSATTR_RETURN(fsap, f_dircount, (u_int64_t)hfsmp->vcbDirCnt);
4857 VFSATTR_RETURN(fsap, f_maxobjcount, (u_int64_t)0xFFFFFFFF);
4858 VFSATTR_RETURN(fsap, f_iosize, (size_t)cluster_max_io_size(mp, 0));
4859 VFSATTR_RETURN(fsap, f_blocks, (u_int64_t)hfsmp->totalBlocks);
4860 VFSATTR_RETURN(fsap, f_bfree, (u_int64_t)hfs_freeblks(hfsmp, 0));
4861 VFSATTR_RETURN(fsap, f_bavail, (u_int64_t)hfs_freeblks(hfsmp, 1));
4862 VFSATTR_RETURN(fsap, f_bsize, (u_int32_t)vcb->blockSize);
4864 VFSATTR_RETURN(fsap, f_bused, hfsmp->totalBlocks - hfs_freeblks(hfsmp, 1));
4866 VFSATTR_RETURN(fsap, f_files, (u_int64_t)(hfsmp->totalBlocks - 2));
4867 VFSATTR_RETURN(fsap, f_ffree, MIN((u_int64_t)freeCNIDs, (u_int64_t)hfs_freeblks(hfsmp, 1)));
4869 fsap->f_fsid.val[0] = hfsmp->hfs_raw_dev;
4870 fsap->f_fsid.val[1] = vfs_typenum(mp);
4871 VFSATTR_SET_SUPPORTED(fsap, f_fsid);
4873 VFSATTR_RETURN(fsap, f_signature, vcb->vcbSigWord);
4874 VFSATTR_RETURN(fsap, f_carbon_fsid, 0);
4876 if (VFSATTR_IS_ACTIVE(fsap, f_capabilities)) {
4879 cap = &fsap->f_capabilities;
4958 VFSATTR_SET_SUPPORTED(fsap, f_capabilities);
4960 if (VFSATTR_IS_ACTIVE(fsap, f_attributes)) {
4961 vol_attributes_attr_t *attrp = &fsap->f_attributes;
4974 VFSATTR_SET_SUPPORTED(fsap, f_attributes);
4976 fsap->f_create_time.tv_sec = hfsmp->vcbCrDate;
4977 fsap->f_create_time.tv_nsec = 0;
4978 VFSATTR_SET_SUPPORTED(fsap, f_create_time);
4979 fsap->f_modify_time.tv_sec = hfsmp->vcbLsMod;
4980 fsap->f_modify_time.tv_nsec = 0;
4981 VFSATTR_SET_SUPPORTED(fsap, f_modify_time);
4983 fsap->f_backup_time.tv_sec = hfsmp->vcbVolBkUp;
4984 fsap->f_backup_time.tv_nsec = 0;
4985 VFSATTR_SET_SUPPORTED(fsap, f_backup_time);
4986 if (VFSATTR_IS_ACTIVE(fsap, f_fssubtype)) {
5007 fsap->f_fssubtype = subtype;
5008 VFSATTR_SET_SUPPORTED(fsap, f_fssubtype);
5011 if (VFSATTR_IS_ACTIVE(fsap, f_vol_name)) {
5012 strlcpy(fsap->f_vol_name, (char *) hfsmp->vcbVN, MAXPATHLEN);
5013 VFSATTR_SET_SUPPORTED(fsap, f_vol_name);
5104 hfs_vfs_setattr(struct mount *mp, struct vfs_attr *fsap, __unused vfs_context_t context)
5115 if (VFSATTR_IS_ACTIVE(fsap, f_vol_name)) {
5122 error = hfs_rename_volume(root_vp, fsap->f_vol_name, vfs_context_proc(context));
5127 VFSATTR_SET_SUPPORTED(fsap, f_vol_name);