Lines Matching defs:dataset
83 * Given a full path to a file, translate into a dataset name and a relative
84 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters,
89 parse_pathname(const char *inpath, char *dataset, char *relpath,
149 (void) strcpy(dataset, mp.mnt_special);
160 * Convert from a (dataset, path) pair into a (objset, object) pair. Note that
166 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf,
178 err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os);
180 (void) fprintf(stderr, "cannot open dataset '%s': %s\n",
181 dataset, strerror(err));
197 calculate_range(const char *dataset, err_type_t type, int level, char *range,
263 if ((err = dmu_objset_own(dataset, DMU_OST_ANY,
265 (void) fprintf(stderr, "cannot open dataset '%s': %s\n",
266 dataset, strerror(err));
333 int level, zinject_record_t *record, char *poolname, char *dataset)
374 dataset[0] = '\0';
380 * Convert a full path into a (dataset, file) pair.
382 if (parse_pathname(object, dataset, path, &statbuf) != 0)
385 ziprintf(" dataset: %s\n", dataset);
389 * Convert (dataset, file) into (objset, object)
391 if (object_from_path(dataset, path, &statbuf, record) != 0)
400 if (calculate_range(dataset, type, level, (char *)range, record) != 0)
415 (void) strcpy(poolname, dataset);