Lines Matching defs:hdl

73 zfs_shadow_parse(libzfs_handle_t *hdl, const char *shadow,
95 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
97 return (zfs_error(hdl, EZFS_BADSHADOW, errmsg));
102 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
104 return (zfs_error(hdl, EZFS_BADSHADOW, errmsg));
113 if ((checkpath = zfs_strdup(hdl, ZFS_SHADOW_DIR)) == NULL)
121 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
123 return (zfs_error(hdl, EZFS_BADSHADOW, errmsg));
132 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
135 return (zfs_error(hdl,
143 if ((*path = zfs_strdup(hdl, fullpath)) == NULL)
155 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
157 return (zfs_error(hdl, EZFS_BADPROP, errmsg));
161 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
163 return (zfs_error(hdl, EZFS_BADPROP, errmsg));
166 if ((*path = zfs_alloc(hdl, strlen(shadow) + 2)) == NULL)
189 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
191 return (zfs_error(hdl, EZFS_BADPROP, errmsg));
194 if ((*path = zfs_strdup(hdl, shadow)) == NULL)
198 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
200 return (zfs_error(hdl, EZFS_BADPROP, errmsg));
207 zfs_shadow_validate(libzfs_handle_t *hdl, const char *shadow)
216 if (zfs_shadow_parse(hdl, shadow, &protocol, &mntopts, &path) != 0)
227 libzfs_handle_t *hdl = zhp->zfs_hdl;
263 libzfs_mnttab_find_opts(hdl, zhp->zfs_name, &entry) == 0 &&
287 zfs_error_aux(hdl, "%s", strerror(errno));
288 return (zfs_error(hdl, EZFS_MOUNTFAILED,
323 if (zfs_shadow_parse(hdl, shadow, &mnttype, &mntopts, &arg) != 0)
336 if (hdl->libzfs_spawn(MOUNT_COMMAND, argv,
337 hdl->libzfs_spawn_data) != 0) {
338 zfs_error_aux(hdl, "mount(1m) command failed");
340 return (zfs_error(hdl, EZFS_SHADOWMOUNTFAILED,