Lines Matching refs:zfh
6792 xlist(zfs_handle_t *zfh, void *ctx) in xlist() argument
6796 if (zfs_get_type(zfh) & dataset_type) in xlist()
6797 printf("%s\n", zfs_get_name(zfh)); in xlist()
6799 if (zfs_get_type(zfh) != ZFS_TYPE_FILESYSTEM) { in xlist()
6800 zfs_close(zfh); in xlist()
6805 ret = zfs_iter_snapshots(zfh, xlist, ctx); in xlist()
6808 zfs_get_name(zfh), in xlist()
6815 ret = zfs_iter_bookmarks(zfh, xlist, ctx); in xlist()
6818 zfs_get_name(zfh), in xlist()
6824 ret = zfs_iter_filesystems(zfh, xlist, ctx); in xlist()
6826 fprintf(stderr, "xlist failed for %s: %s\n", zfs_get_name(zfh), in xlist()
6831 zfs_close(zfh); in xlist()
6895 get_property_source(zfs_handle_t *zfh, nvpair_t *prop) in get_property_source() argument
6900 const char *fsname = zfs_get_name(zfh); in get_property_source()
6919 get_userprop(zfs_handle_t *zfh, in get_userprop() argument
6928 const char *fsname = zfs_get_name(zfh); in get_userprop()
6974 *src = get_property_source(zfh, prop); in get_userprop()
6985 print_property(zfs_handle_t *zfh, const char *propname, char *propval, in print_property() argument
7013 printf("%s\t%s\t%s\t%s\n", zfs_get_name(zfh), propname, propval, in print_property()
7021 zfs_handle_t *zfh = (zfs_handle_t *)data; in xget_print_system_props() local
7028 ret = zfs_prop_get(zfh, prop_id, buf, sizeof(buf), in xget_print_system_props()
7032 print_property(zfh, zfs_prop_to_name(prop_id), "-", in xget_print_system_props()
7035 print_property(zfh, zfs_prop_to_name(prop_id), buf, in xget_print_system_props()
7044 xget_print_user_props(zfs_handle_t *zfh, in xget_print_user_props() argument
7054 const char *fsname = zfs_get_name(zfh); in xget_print_user_props()
7057 props = zfs_get_user_props(zfh); in xget_print_user_props()
7059 if (get_userprop(zfh, prop, &name, &tvalue, NULL)) { in xget_print_user_props()
7067 src = get_property_source(zfh, prop); in xget_print_user_props()
7068 print_property(zfh, name, tvalue, src); in xget_print_user_props()
7076 xget(zfs_handle_t *zfh, void *ctx) in xget() argument
7078 const char *fsname = zfs_get_name(zfh); in xget()
7082 if (zfs_get_type(zfh) == ZFS_TYPE_FILESYSTEM) { in xget()
7084 ret = zfs_iter_snapshots(zfh, xget, ctx); in xget()
7093 ret = zfs_iter_bookmarks(zfh, xget, ctx); in xget()
7101 if (zfs_iter_filesystems(zfh, xget, ctx)) { in xget()
7108 if (!(zfs_get_type(zfh) & dataset_type)) { in xget()
7109 zfs_close(zfh); in xget()
7124 zprop_iter(xget_print_system_props, zfh, in xget()
7125 B_FALSE, B_FALSE, zfs_get_type(zfh)); in xget()
7128 zfh); in xget()
7130 xget_print_user_props(zfh, propname, &propval, src); in xget()
7135 zfs_close(zfh); in xget()