Using fstatfs on a ZFS disk
Bob Bishop
rb at gid.co.uk
Mon Feb 19 15:12:43 UTC 2018
Hi,
> On 19 Feb 2018, at 14:48, Willem Jan Withagen <wjw at digiware.nl> wrote:
>
> Hi,
>
> I'm trying to find the values of the returned f_type for ZFS
> in the fstatfs call when a file is on ZFS....
>
> But I have not yet found the definitions of the ENUMS that
> would fill that value... Let alone the value for ZFS.
I chased this particular wild goose myself recently. It’s FS_... in /usr/include/sys/disklabel,h that you want.
> struct statfs {
> uint32_t f_version; /* structure version number */
> uint32_t f_type; /* type of filesystem */
> uint64_t f_flags; /* copy of mount exported flags */
> ......
> }
>
> Any hints where to look would be welcomed.
>
> Thanx,
> --WjW
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
--
Bob Bishop
rb at gid.co.uk
More information about the freebsd-hackers
mailing list