Lines Matching defs:sfs
1483 struct statfs64 sfs;
1485 bzero(&sfs, sizeof(sfs));
1487 sfs.f_bsize = sfsp->f_bsize;
1488 sfs.f_iosize = (int32_t)sfsp->f_iosize;
1489 sfs.f_blocks = sfsp->f_blocks;
1490 sfs.f_bfree = sfsp->f_bfree;
1491 sfs.f_bavail = sfsp->f_bavail;
1492 sfs.f_files = sfsp->f_files;
1493 sfs.f_ffree = sfsp->f_ffree;
1494 sfs.f_fsid = sfsp->f_fsid;
1495 sfs.f_owner = sfsp->f_owner;
1496 sfs.f_type = mp->mnt_vtable->vfc_typenum;
1497 sfs.f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
1498 sfs.f_fssubtype = sfsp->f_fssubtype;
1499 strlcpy(&sfs.f_fstypename[0], &sfsp->f_fstypename[0], MFSTYPENAMELEN);
1500 strlcpy(&sfs.f_mntonname[0], &sfsp->f_mntonname[0], MAXPATHLEN);
1501 strlcpy(&sfs.f_mntfromname[0], &sfsp->f_mntfromname[0], MAXPATHLEN);
1503 error = copyout((caddr_t)&sfs, bufp, sizeof(sfs));
6851 struct user_statfs sfs;
6852 my_size = copy_size = sizeof(sfs);
6853 bzero(&sfs, my_size);
6854 sfs.f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
6855 sfs.f_type = mp->mnt_vtable->vfc_typenum;
6856 sfs.f_reserved1 = (short)sfsp->f_fssubtype;
6857 sfs.f_bsize = (user_long_t)sfsp->f_bsize;
6858 sfs.f_iosize = (user_long_t)sfsp->f_iosize;
6859 sfs.f_blocks = (user_long_t)sfsp->f_blocks;
6860 sfs.f_bfree = (user_long_t)sfsp->f_bfree;
6861 sfs.f_bavail = (user_long_t)sfsp->f_bavail;
6862 sfs.f_files = (user_long_t)sfsp->f_files;
6863 sfs.f_ffree = (user_long_t)sfsp->f_ffree;
6864 sfs.f_fsid = sfsp->f_fsid;
6865 sfs.f_owner = sfsp->f_owner;
6866 strlcpy(&sfs.f_fstypename[0], &sfsp->f_fstypename[0], MFSNAMELEN);
6867 strlcpy(&sfs.f_mntonname[0], &sfsp->f_mntonname[0], MNAMELEN);
6868 strlcpy(&sfs.f_mntfromname[0], &sfsp->f_mntfromname[0], MNAMELEN);
6871 copy_size -= (sizeof(sfs.f_reserved3) + sizeof(sfs.f_reserved4));
6873 error = copyout((caddr_t)&sfs, bufp, copy_size);
6876 struct statfs sfs;
6877 my_size = copy_size = sizeof(sfs);
6878 bzero(&sfs, my_size);
6880 sfs.f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
6881 sfs.f_type = mp->mnt_vtable->vfc_typenum;
6882 sfs.f_reserved1 = (short)sfsp->f_fssubtype;
6920 sfs.f_blocks = (long)__SHIFT_OR_CLIP(sfsp->f_blocks, shift);
6921 sfs.f_bfree = (long)__SHIFT_OR_CLIP(sfsp->f_bfree, shift);
6922 sfs.f_bavail = (long)__SHIFT_OR_CLIP(sfsp->f_bavail, shift);
6924 sfs.f_bsize = (long)(sfsp->f_bsize << shift);
6925 sfs.f_iosize = lmax(sfsp->f_iosize, sfsp->f_bsize);
6928 sfs.f_bsize = (long)sfsp->f_bsize;
6929 sfs.f_iosize = (long)sfsp->f_iosize;
6930 sfs.f_blocks = (long)sfsp->f_blocks;
6931 sfs.f_bfree = (long)sfsp->f_bfree;
6932 sfs.f_bavail = (long)sfsp->f_bavail;
6934 sfs.f_files = (long)sfsp->f_files;
6935 sfs.f_ffree = (long)sfsp->f_ffree;
6936 sfs.f_fsid = sfsp->f_fsid;
6937 sfs.f_owner = sfsp->f_owner;
6938 strlcpy(&sfs.f_fstypename[0], &sfsp->f_fstypename[0], MFSNAMELEN);
6939 strlcpy(&sfs.f_mntonname[0], &sfsp->f_mntonname[0], MNAMELEN);
6940 strlcpy(&sfs.f_mntfromname[0], &sfsp->f_mntfromname[0], MNAMELEN);
6943 copy_size -= (sizeof(sfs.f_reserved3) + sizeof(sfs.f_reserved4));
6945 error = copyout((caddr_t)&sfs, bufp, copy_size);