Home
last modified time | relevance | path

Searched refs:zfs_name (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c314 len = strcspn(zhp->zfs_name, "/@#") + 1; in zpool_handle()
316 (void) strlcpy(pool_name, zhp->zfs_name, len); in zpool_handle()
347 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name)); in get_stats_ioctl()
375 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in get_recvd_props_ioctl()
500 (void) strlcpy(zhp->zfs_name, path, sizeof (zhp->zfs_name)); in make_dataset_handle()
527 (void) strlcpy(zhp->zfs_name, zc->zc_name, sizeof (zhp->zfs_name)); in make_dataset_handle_zc()
545 (void) strlcpy(zhp->zfs_name, zhp_orig->zfs_name, in zfs_handle_dup()
546 sizeof (zhp->zfs_name)); in zfs_handle_dup()
625 (void) strlcpy(zhp->zfs_name, path, sizeof (zhp->zfs_name)); in make_bookmark_handle()
1601 zhp->zfs_name); in zfs_prop_set()
[all …]
H A Dlibzfs_sendrecv.c669 snapname = strrchr(zhp->zfs_name, '@')+1; in send_iterate_snap()
733 if ((strcmp(source, zhp->zfs_name) != 0) && in send_iterate_prop()
743 if ((strcmp(source, zhp->zfs_name) != 0) && in send_iterate_prop()
779 VERIFY(0 == nvlist_add_string(nvfs, "name", zhp->zfs_name)); in send_iterate_fs()
894 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in estimate_ioctl()
903 "warning: cannot estimate space for '%s'"), zhp->zfs_name); in estimate_ioctl()
960 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in dump_ioctl()
976 "warning: cannot send '%s'"), zhp->zfs_name); in dump_ioctl()
981 zhp->zfs_name, thisdbg)); in dump_ioctl()
1020 VERIFY(0 == nvlist_add_nvlist(debugnv, zhp->zfs_name, thisdbg)); in dump_ioctl()
[all …]
H A Dlibzfs_changelist.c296 if (!isa_child_of(cn->cn_handle->zfs_name, src)) in changelist_rename()
305 (void) strcat(newname, cn->cn_handle->zfs_name + strlen(src)); in changelist_rename()
307 (void) strlcpy(cn->cn_handle->zfs_name, newname, in changelist_rename()
308 sizeof (cn->cn_handle->zfs_name)); in changelist_rename()
357 if (strcmp(cn->cn_handle->zfs_name, name) == 0) { in changelist_remove()
H A Dlibzfs_iter.c68 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name)); in zfs_do_list_ioctl()
189 if ((err = lzc_get_bookmarks(zhp->zfs_name, props, &bmarks)) != 0) in zfs_iter_bookmarks()
201 (void) snprintf(name, sizeof (name), "%s#%s", zhp->zfs_name, in zfs_iter_bookmarks()
H A Dlibzfs_mount.c340 zhp->zfs_name)); in zfs_mount()
377 libzfs_mnttab_find(hdl, zhp->zfs_name, &entry) == 0)) { in zfs_unmount()
400 libzfs_mnttab_remove(hdl, zhp->zfs_name); in zfs_unmount()
761 shareopts, sourcestr, zhp->zfs_name) != SA_OK) { in zfs_share_proto()
884 unshare_one(hdl, zhp->zfs_name, in zfs_unshare_proto()
H A Dlibzfs_impl.h89 char zfs_name[ZFS_MAX_DATASET_NAME_LEN]; member
/titanic_44/usr/src/cmd/zoneadm/
H A Dzfs.c451 path2name(char *zonepath, char *zfs_name, int len) in path2name() argument
496 res = snprintf(zfs_name, len, "%s/%s", zfs_get_name(zhp), bname); in path2name()
968 char zfs_name[MAXPATHLEN]; in create_zfs_zonepath() local
971 if (path2name(zonepath, zfs_name, sizeof (zfs_name)) != Z_OK) in create_zfs_zonepath()
975 if ((zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) != NULL) { in create_zfs_zonepath()
992 "out of memory\n"), zfs_name); in create_zfs_zonepath()
995 if (zfs_create(g_zfs, zfs_name, ZFS_TYPE_FILESYSTEM, props) != 0 || in create_zfs_zonepath()
996 (zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) == NULL) { in create_zfs_zonepath()
998 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
1007 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
[all …]