Lines Matching refs:bsd_statfs

348 bsd_to_linux_statfs(struct statfs *bsd_statfs, struct l_statfs *linux_statfs)  in bsd_to_linux_statfs()  argument
352 statfs_scale_blocks(bsd_statfs, INT32_MAX); in bsd_to_linux_statfs()
354 linux_statfs->f_type = bsd_to_linux_ftype(bsd_statfs->f_fstypename); in bsd_to_linux_statfs()
355 linux_statfs->f_bsize = bsd_statfs->f_bsize; in bsd_to_linux_statfs()
356 linux_statfs->f_blocks = bsd_statfs->f_blocks; in bsd_to_linux_statfs()
357 linux_statfs->f_bfree = bsd_statfs->f_bfree; in bsd_to_linux_statfs()
358 linux_statfs->f_bavail = bsd_statfs->f_bavail; in bsd_to_linux_statfs()
360 linux_statfs->f_ffree = MIN(bsd_statfs->f_ffree, INT32_MAX); in bsd_to_linux_statfs()
361 linux_statfs->f_files = MIN(bsd_statfs->f_files, INT32_MAX); in bsd_to_linux_statfs()
363 linux_statfs->f_ffree = bsd_statfs->f_ffree; in bsd_to_linux_statfs()
364 linux_statfs->f_files = bsd_statfs->f_files; in bsd_to_linux_statfs()
366 linux_statfs->f_fsid.val[0] = bsd_statfs->f_fsid.val[0]; in bsd_to_linux_statfs()
367 linux_statfs->f_fsid.val[1] = bsd_statfs->f_fsid.val[1]; in bsd_to_linux_statfs()
369 linux_statfs->f_frsize = bsd_statfs->f_bsize; in bsd_to_linux_statfs()
370 linux_statfs->f_flags = bsd_to_linux_mnt_flags(bsd_statfs->f_flags); in bsd_to_linux_statfs()
380 struct statfs *bsd_statfs; in linux_statfs() local
383 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs()
384 error = kern_statfs(td, args->path, UIO_USERSPACE, bsd_statfs); in linux_statfs()
386 error = bsd_to_linux_statfs(bsd_statfs, &linux_statfs); in linux_statfs()
387 free(bsd_statfs, M_STATFS); in linux_statfs()
395 bsd_to_linux_statfs64(struct statfs *bsd_statfs, struct l_statfs64 *linux_statfs) in bsd_to_linux_statfs64() argument
398 linux_statfs->f_type = bsd_to_linux_ftype(bsd_statfs->f_fstypename); in bsd_to_linux_statfs64()
399 linux_statfs->f_bsize = bsd_statfs->f_bsize; in bsd_to_linux_statfs64()
400 linux_statfs->f_blocks = bsd_statfs->f_blocks; in bsd_to_linux_statfs64()
401 linux_statfs->f_bfree = bsd_statfs->f_bfree; in bsd_to_linux_statfs64()
402 linux_statfs->f_bavail = bsd_statfs->f_bavail; in bsd_to_linux_statfs64()
403 linux_statfs->f_ffree = bsd_statfs->f_ffree; in bsd_to_linux_statfs64()
404 linux_statfs->f_files = bsd_statfs->f_files; in bsd_to_linux_statfs64()
405 linux_statfs->f_fsid.val[0] = bsd_statfs->f_fsid.val[0]; in bsd_to_linux_statfs64()
406 linux_statfs->f_fsid.val[1] = bsd_statfs->f_fsid.val[1]; in bsd_to_linux_statfs64()
408 linux_statfs->f_frsize = bsd_statfs->f_bsize; in bsd_to_linux_statfs64()
409 linux_statfs->f_flags = bsd_to_linux_mnt_flags(bsd_statfs->f_flags); in bsd_to_linux_statfs64()
417 struct statfs *bsd_statfs; in linux_statfs64() local
423 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_statfs64()
424 error = kern_statfs(td, args->path, UIO_USERSPACE, bsd_statfs); in linux_statfs64()
426 bsd_to_linux_statfs64(bsd_statfs, &linux_statfs); in linux_statfs64()
427 free(bsd_statfs, M_STATFS); in linux_statfs64()
437 struct statfs *bsd_statfs; in linux_fstatfs64() local
443 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs64()
444 error = kern_fstatfs(td, args->fd, bsd_statfs); in linux_fstatfs64()
446 bsd_to_linux_statfs64(bsd_statfs, &linux_statfs); in linux_fstatfs64()
447 free(bsd_statfs, M_STATFS); in linux_fstatfs64()
458 struct statfs *bsd_statfs; in linux_fstatfs() local
461 bsd_statfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in linux_fstatfs()
462 error = kern_fstatfs(td, args->fd, bsd_statfs); in linux_fstatfs()
464 error = bsd_to_linux_statfs(bsd_statfs, &linux_statfs); in linux_fstatfs()
465 free(bsd_statfs, M_STATFS); in linux_fstatfs()