Lines Matching refs:dataset

82  * Description:	Returns the available size for the zfs dataset passed in.
84 * dataset - The dataset we want to get the available space for.
92 be_max_avail(char *dataset, uint64_t *ret)
101 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
285 * Description: Generate string for BE's root dataset given the pool
290 * be_root_ds - pointer to buffer to return BE root dataset in.
307 * Description: Generate string for a zone's BE rpool dataset given a zonepath
308 * dataset.
311 * rpool_ds - pointer to buffer to return the rpool dataset in.
328 * Description: Generate string for the BE container dataset given a pool name.
332 * dataset in.
349 * Description: This function takes a dataset name and strips off the
350 * BE container dataset portion from the beginning. The
354 * dataset - dataset to get name from.
355 * rc_loc - dataset underwhich the root container dataset lives.
357 * name of dataset relative to BE container dataset.
358 * NULL if dataset is not under a BE root dataset.
363 be_make_name_from_ds(const char *dataset, char *rc_loc)
370 * First token is the location of where the root container dataset
373 if (strncmp(dataset, rc_loc, strlen(rc_loc)) == 0 &&
374 dataset[strlen(rc_loc)] == '/') {
375 (void) strlcpy(ds, dataset + strlen(rc_loc) + 1, sizeof (ds));
380 /* Second token must be BE container dataset name */
419 * The entry's root container dataset and be_name will be
423 * old_rc_loc - dataset under which the root container dataset
425 * new_rc_loc - dataset under which the root container dataset
566 * container_ds - container dataset for the zone.
603 * A BE name must not be a multi-level dataset name. We also check
617 * The BE name must comply with a zfs dataset filesystem. We also
869 * Get handle to this pool analog's BE container dataset.
874 "failed to open BE container dataset (%s)\n"),
926 * Generate string for BE container dataset
931 * Check if a BE container dataset exists in this pool.
939 * Get handle to this zpool's BE container dataset.
944 "failed to open BE container dataset (%s)\n"),
955 * Found current BE dataset; set obe_zpool
986 * are set to the BE name and BE's root dataset
1001 * Check if dataset is mounted, and if so where.
1041 * Description: This function checks whether or not the dataset name passed
1042 * is hierachically located under the BE root container dataset
1046 * data - name of dataset to check
1048 * 0 - dataset is not in this pool's BE root container dataset
1049 * 1 - dataset is in this pool's BE root container dataset
1063 * zone BE datasets. Because a zone BE dataset currently
1066 * do in a global zone. When dataset aliasing is introduced
1069 * as a part of the dataset (at least it won't be visible
1072 * when/if dataset aliasing becomes available inside a local
1087 /* Generate string for this pool's BE root container dataset */
1091 * If dataset lives under the BE root container dataset
1258 return (gettext("Invalid dataset type."));
1268 return (gettext("Invalid property for dataset."));
1291 "Property is not inheritable for the BE dataset."));
1309 return (gettext("Read only dataset."));
1564 * Description: This function takes a dataset name and replaces the zpool
1565 * and be_name components of the dataset with the new be_name
1568 * dataset - name of dataset
1569 * dataset_len - lenth of buffer in which dataset is passed in.
1571 * old_rc_loc - dataset under which the root container dataset
1573 * new_rc_loc - dataset under which the root container dataset
1582 update_dataset(char *dataset, int dataset_len, char *be_name,
1588 /* Tear off the BE container dataset */
1589 if ((ds = be_make_name_from_ds(dataset, old_rc_loc)) == NULL) {
1593 /* Get dataset name relative to BE root, if there is one */
1596 /* Generate the BE root dataset name */
1597 be_make_root_ds(new_rc_loc, be_name, dataset, dataset_len);
1599 /* If a subordinate dataset name was found, append it */
1601 (void) strlcat(dataset, sub_ds, dataset_len);
1610 * root container dataset location and be_name for all
1615 * old_rc_loc - dataset under which the root container dataset
1617 * new_rc_loc - dataset under which the root container dataset
1738 * Replace the root container dataset
1819 * container_ds - container dataset for the zone.
2033 * Generate string for BE container dataset
2038 * Check if a BE container dataset exists in this pool.