Lines Matching refs:zfh

6791 xlist(zfs_handle_t *zfh, void *ctx)  in xlist()  argument
6795 if (zfs_get_type(zfh) & dataset_type) in xlist()
6796 printf("%s\n", zfs_get_name(zfh)); in xlist()
6798 if (zfs_get_type(zfh) != ZFS_TYPE_FILESYSTEM) { in xlist()
6799 zfs_close(zfh); in xlist()
6804 ret = zfs_iter_snapshots(zfh, xlist, ctx); in xlist()
6807 zfs_get_name(zfh), in xlist()
6814 ret = zfs_iter_bookmarks(zfh, xlist, ctx); in xlist()
6817 zfs_get_name(zfh), in xlist()
6823 ret = zfs_iter_filesystems(zfh, xlist, ctx); in xlist()
6825 fprintf(stderr, "xlist failed for %s: %s\n", zfs_get_name(zfh), in xlist()
6830 zfs_close(zfh); in xlist()
6894 get_property_source(zfs_handle_t *zfh, nvpair_t *prop) in get_property_source() argument
6899 const char *fsname = zfs_get_name(zfh); in get_property_source()
6918 get_userprop(zfs_handle_t *zfh, in get_userprop() argument
6927 const char *fsname = zfs_get_name(zfh); in get_userprop()
6973 *src = get_property_source(zfh, prop); in get_userprop()
6984 print_property(zfs_handle_t *zfh, const char *propname, char *propval, in print_property() argument
7012 printf("%s\t%s\t%s\t%s\n", zfs_get_name(zfh), propname, propval, in print_property()
7020 zfs_handle_t *zfh = (zfs_handle_t *)data; in xget_print_system_props() local
7027 ret = zfs_prop_get(zfh, prop_id, buf, sizeof(buf), in xget_print_system_props()
7031 print_property(zfh, zfs_prop_to_name(prop_id), "-", in xget_print_system_props()
7034 print_property(zfh, zfs_prop_to_name(prop_id), buf, in xget_print_system_props()
7043 xget_print_user_props(zfs_handle_t *zfh, in xget_print_user_props() argument
7053 const char *fsname = zfs_get_name(zfh); in xget_print_user_props()
7056 props = zfs_get_user_props(zfh); in xget_print_user_props()
7058 if (get_userprop(zfh, prop, &name, &tvalue, NULL)) { in xget_print_user_props()
7066 src = get_property_source(zfh, prop); in xget_print_user_props()
7067 print_property(zfh, name, tvalue, src); in xget_print_user_props()
7075 xget(zfs_handle_t *zfh, void *ctx) in xget() argument
7077 const char *fsname = zfs_get_name(zfh); in xget()
7081 if (zfs_get_type(zfh) == ZFS_TYPE_FILESYSTEM) { in xget()
7083 ret = zfs_iter_snapshots(zfh, xget, ctx); in xget()
7092 ret = zfs_iter_bookmarks(zfh, xget, ctx); in xget()
7100 if (zfs_iter_filesystems(zfh, xget, ctx)) { in xget()
7107 if (!(zfs_get_type(zfh) & dataset_type)) { in xget()
7108 zfs_close(zfh); in xget()
7123 zprop_iter(xget_print_system_props, zfh, in xget()
7124 B_FALSE, B_FALSE, zfs_get_type(zfh)); in xget()
7127 zfh); in xget()
7129 xget_print_user_props(zfh, propname, &propval, src); in xget()
7134 zfs_close(zfh); in xget()