Date: Mon, 19 Feb 2018 15:00:30 +0000 From: Bob Bishop <rb@gid.co.uk> To: Willem Jan Withagen <wjw@digiware.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Using fstatfs on a ZFS disk Message-ID: <1C4DBFA3-5E79-4503-840C-0C548741363B@gid.co.uk> In-Reply-To: <ffcfabf1-8cf1-4182-413e-73b7117d66d7@digiware.nl> References: <ffcfabf1-8cf1-4182-413e-73b7117d66d7@digiware.nl>
index | next in thread | previous in thread | raw e-mail
Hi,
> On 19 Feb 2018, at 14:48, Willem Jan Withagen <wjw@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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>
--
Bob Bishop
rb@gid.co.uk
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1C4DBFA3-5E79-4503-840C-0C548741363B>
