Lines Matching refs:g_zfs

326 	if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &bt)) == 0) {
333 libzfs_error_description(g_zfs));
334 return (zfs_err_to_be_err(g_zfs));
343 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
346 bt.obe_root_ds, libzfs_error_description(g_zfs));
347 return (zfs_err_to_be_err(g_zfs));
361 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
364 bt.obe_root_ds, libzfs_error_description(g_zfs));
365 return (zfs_err_to_be_err(g_zfs));
444 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &bt))
452 libzfs_error_description(g_zfs));
453 return (zfs_err_to_be_err(g_zfs));
508 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET))
512 bt.obe_root_ds, libzfs_error_description(g_zfs));
513 ret = zfs_err_to_be_err(g_zfs);
521 libzfs_error_description(g_zfs));
557 if (zfs_snapshot(g_zfs, ss, B_TRUE, ss_props) != 0) {
558 if (!autoname || libzfs_errno(g_zfs) != EZFS_EXISTS) {
561 ss, libzfs_error_description(g_zfs));
563 if (libzfs_errno(g_zfs) == EZFS_EXISTS)
566 ret = zfs_err_to_be_err(g_zfs);
591 if (zfs_snapshot(g_zfs, ss, B_TRUE, ss_props)
593 if (libzfs_errno(g_zfs) !=
600 g_zfs));
601 ret = zfs_err_to_be_err(g_zfs);
681 if ((ret = zpool_iter(g_zfs, be_find_zpool_callback, &bt)) == 0) {
688 libzfs_error_description(g_zfs));
689 return (zfs_err_to_be_err(g_zfs));
707 zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET);
714 bt.obe_root_ds, libzfs_error_description(g_zfs));
715 err = zfs_err_to_be_err(g_zfs);
735 err = zfs_err_to_be_err(g_zfs);
738 libzfs_error_description(g_zfs));
776 if (!zfs_dataset_exists(g_zfs, ss, ZFS_TYPE_SNAPSHOT)) {
819 if ((zhp_snap = zfs_open(g_zfs, ss, ZFS_TYPE_SNAPSHOT)) == NULL) {
822 libzfs_error_description(g_zfs));
823 ret = zfs_err_to_be_err(g_zfs);
832 zfs_get_name(zhp), ss, libzfs_error_description(g_zfs));
833 ret = zfs_err_to_be_err(g_zfs);