Lines Matching defs:fsap
89 static int devfs_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t ctx);
296 devfs_vfs_getattr(__unused mount_t mp, struct vfs_attr *fsap, __unused vfs_context_t ctx)
298 VFSATTR_RETURN(fsap, f_objcount, devfs_stats.nodes);
299 VFSATTR_RETURN(fsap, f_maxobjcount, devfs_stats.nodes);
300 VFSATTR_RETURN(fsap, f_bsize, 512);
301 VFSATTR_RETURN(fsap, f_iosize, 512);
302 if (VFSATTR_IS_ACTIVE(fsap, f_blocks) || VFSATTR_IS_ACTIVE(fsap, f_bused)) {
303 fsap->f_blocks = (devfs_stats.mounts * sizeof(struct devfsmount)
307 ) / fsap->f_bsize;
308 fsap->f_bused = fsap->f_blocks;
309 VFSATTR_SET_SUPPORTED(fsap, f_blocks);
310 VFSATTR_SET_SUPPORTED(fsap, f_bused);
312 VFSATTR_RETURN(fsap, f_bfree, 0);
313 VFSATTR_RETURN(fsap, f_bavail, 0);
314 VFSATTR_RETURN(fsap, f_files, devfs_stats.nodes);
315 VFSATTR_RETURN(fsap, f_ffree, 0);
316 VFSATTR_RETURN(fsap, f_fssubtype, 0);