[illumos-Developer] Difference between zfs_path_to_zhandle and zfs_open
Garrett D'Amore
garrett at nexenta.com
Thu Oct 7 22:53:22 PDT 2010
On Thu, 2010-10-07 at 20:52 -0700, Peter Tap wrote:
>
> Folks,
>
> Both of these functions seem to open a handle to the filesystem. When
> do you use one over the other?
>
> Regards,
> Peter
>
>
Reading the code...
zfs_path_to_zhandle() looks at the active mounts and determines what the
sensible filesystem is, and then uses that as the 2nd argument to
zfs_open(). zfs_open() expects the name actual ZFS dataset name.
-Garrett
>
>
>
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer
More information about the Developer
mailing list