Lines Matching refs:linux_statfs

357 bsd_to_linux_statfs(struct statfs *bsd_statfs, struct l_statfs *linux_statfs)
372 linux_statfs->f_type = bsd_to_linux_ftype(bsd_statfs->f_fstypename);
373 linux_statfs->f_bsize = bsd_statfs->f_bsize;
374 linux_statfs->f_blocks = bsd_statfs->f_blocks;
375 linux_statfs->f_bfree = bsd_statfs->f_bfree;
376 linux_statfs->f_bavail = bsd_statfs->f_bavail;
377 linux_statfs->f_ffree = bsd_statfs->f_ffree;
378 linux_statfs->f_files = bsd_statfs->f_files;
379 linux_statfs->f_fsid.val[0] = bsd_statfs->f_fsid.val[0];
380 linux_statfs->f_fsid.val[1] = bsd_statfs->f_fsid.val[1];
381 linux_statfs->f_namelen = MAXNAMLEN;
382 linux_statfs->f_frsize = bsd_statfs->f_bsize;
383 linux_statfs->f_flags = 0;
384 memset(linux_statfs->f_spare, 0, sizeof(linux_statfs->f_spare));
390 linux_statfs(struct thread *td, struct linux_statfs_args *args)
392 struct l_statfs linux_statfs;
407 error = bsd_to_linux_statfs(bsd_statfs, &linux_statfs);
411 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
416 bsd_to_linux_statfs64(struct statfs *bsd_statfs, struct l_statfs64 *linux_statfs)
419 linux_statfs->f_type = bsd_to_linux_ftype(bsd_statfs->f_fstypename);
420 linux_statfs->f_bsize = bsd_statfs->f_bsize;
421 linux_statfs->f_blocks = bsd_statfs->f_blocks;
422 linux_statfs->f_bfree = bsd_statfs->f_bfree;
423 linux_statfs->f_bavail = bsd_statfs->f_bavail;
424 linux_statfs->f_ffree = bsd_statfs->f_ffree;
425 linux_statfs->f_files = bsd_statfs->f_files;
426 linux_statfs->f_fsid.val[0] = bsd_statfs->f_fsid.val[0];
427 linux_statfs->f_fsid.val[1] = bsd_statfs->f_fsid.val[1];
428 linux_statfs->f_namelen = MAXNAMLEN;
429 linux_statfs->f_frsize = bsd_statfs->f_bsize;
430 linux_statfs->f_flags = 0;
431 memset(linux_statfs->f_spare, 0, sizeof(linux_statfs->f_spare));
437 struct l_statfs64 linux_statfs;
455 bsd_to_linux_statfs64(bsd_statfs, &linux_statfs);
459 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
465 struct l_statfs64 linux_statfs;
479 bsd_to_linux_statfs64(bsd_statfs, &linux_statfs);
483 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
490 struct l_statfs linux_statfs;
501 error = bsd_to_linux_statfs(bsd_statfs, &linux_statfs);
505 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));