Lines Matching defs:dataset

296  * Description:	Returns the available size for the zfs dataset passed in.
298 * dataset - The dataset we want to get the available space for.
306 be_max_avail(char *dataset, uint64_t *ret)
315 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
433 * Description: Generate string for BE's root dataset given the pool
438 * be_root_ds - pointer to buffer to return BE root dataset in.
463 * In non-global zone we can use path from mounted root dataset
464 * to generate BE's root dataset string.
471 "dataset is not mounted\n"));
479 * Description: Generate string for the BE container dataset given a pool name.
483 * dataset in.
512 "dataset is not mounted\n"));
520 * Description: This function takes a dataset name and strips off the
521 * BE container dataset portion from the beginning. The
525 * dataset - dataset to get name from.
526 * rc_loc - dataset underwhich the root container dataset lives.
528 * name of dataset relative to BE container dataset.
529 * NULL if dataset is not under a BE root dataset.
534 be_make_name_from_ds(const char *dataset, char *rc_loc)
545 * First token is the location of where the root container dataset
548 if (strncmp(dataset, rc_loc, rlen) == 0 && dataset[rlen] == '/')
549 (void) strlcpy(ds, dataset + rlen + 1, sizeof (ds));
560 /* Second token must be BE container dataset name */
605 * be_orig_root_ds - The root dataset for the BE. This is
648 "pool dataset for %s: %s\n"), be_root_pool,
654 * Check to see if the pool's dataset is mounted. If it isn't we'll
659 be_print_err(gettext("be_append_menu: pool dataset "
666 * Get the mountpoint for the root pool dataset.
670 "dataset (%s) is not mounted. Can't set "
694 * original root dataset for a BE we're cloning from, we need to keep
941 /* Get name of BE's root dataset */
944 /* Get handle to pool dataset */
947 "failed to open pool dataset for %s: %s"),
953 * Check to see if the pool's dataset is mounted. If it isn't we'll
958 be_print_err(gettext("be_remove_menu: pool dataset "
965 * Get the mountpoint for the root pool dataset.
969 "dataset (%s) is not mounted. Can't set "
1351 * Description: This function returns the dataset in the default entry of
1393 /* Get handle to pool dataset */
1396 "failed to open pool dataset for %s: %s"),
1402 * Check to see if the pool's dataset is mounted. If it isn't we'll
1407 be_print_err(gettext("be_default_grub_bootfs: pool dataset "
1414 * Get the mountpoint for the root pool dataset.
1551 /* Generate string for BE's root dataset */
1554 /* Get handle to pool dataset */
1557 "failed to open pool dataset for %s: %s"),
1563 * Check to see if the pool's dataset is mounted. If it isn't we'll
1568 be_print_err(gettext("be_change_grub_default: pool dataset "
1575 * Get the mountpoint for the root pool dataset.
1579 "dataset (%s) is not mounted. Can't set "
1782 "pool dataset for %s: %s\n"), be_root_pool,
1788 * Check to see if the pool's dataset is mounted. If it isn't we'll
1793 be_print_err(gettext("be_update_menu: pool dataset "
1800 * Get the mountpoint for the root pool dataset.
1946 * dataset value.
1959 * write out the new root dataset value
2023 * Description: Checks to see if the BEs root dataset has an entry in the grub
2026 * be_dataset - The root dataset of the BE
2056 "pool dataset for %s: %s\n"), be_root_pool,
2062 * Check to see if the pool's dataset is mounted. If it isn't we'll
2067 be_print_err(gettext("be_has_menu_entry: pool dataset "
2074 * Get the mountpoint for the root pool dataset.
2078 "dataset (%s) is not mounted. Can't set "
2145 * The entry's root container dataset and be_name will be
2149 * old_rc_loc - dataset under which the root container dataset
2151 * new_rc_loc - dataset under which the root container dataset
2217 * The entry's root container dataset and be_name will be
2220 * zhp - zfs_handle_t pointer to zone root dataset.
2222 * old_rc_loc - dataset under which the root container dataset
2224 * new_rc_loc - dataset under which the root container dataset
2371 * container_ds - container dataset for the zone.
2411 * A BE name must not be a multi-level dataset name. We also check
2425 * The BE name must comply with a zfs dataset filesystem. We also
2691 * Generate string for BE container dataset
2700 "zone root dataset is not mounted\n"));
2709 * Check if a BE container dataset exists in this pool.
2717 * Get handle to this zpool's BE container dataset.
2722 "failed to open BE container dataset (%s)\n"),
2733 * Found current BE dataset; set obe_zpool
2764 * are set to the BE name and BE's root dataset
2779 * Check if dataset is mounted, and if so where.
2819 * Description: This function checks whether or not the dataset name passed
2820 * is hierachically located under the BE root container dataset
2824 * data - name of dataset to check
2826 * 0 - dataset is not in this pool's BE root container dataset
2827 * 1 - dataset is in this pool's BE root container dataset
2838 /* Generate string for this pool's BE root container dataset */
2842 * If dataset lives under the BE root container dataset
3009 return (gettext("Invalid dataset type."));
3019 return (gettext("Invalid property for dataset."));
3040 "Property is not inheritable for the BE dataset."));
3058 return (gettext("Read only dataset."));
3371 * Description: This function takes a dataset name and replaces the zpool
3372 * and be_name components of the dataset with the new be_name
3375 * dataset - name of dataset
3376 * dataset_len - lenth of buffer in which dataset is passed in.
3378 * old_rc_loc - dataset under which the root container dataset
3380 * new_rc_loc - dataset under which the root container dataset
3389 update_dataset(char *dataset, int dataset_len, char *be_name,
3395 /* Tear off the BE container dataset */
3396 if ((ds = be_make_name_from_ds(dataset, old_rc_loc)) == NULL) {
3400 /* Get dataset name relative to BE root, if there is one */
3403 /* Generate the BE root dataset name */
3404 be_make_root_ds(new_rc_loc, be_name, dataset, dataset_len);
3406 /* If a subordinate dataset name was found, append it */
3408 (void) strlcat(dataset, sub_ds, dataset_len);
3417 * root container dataset location and be_name for all
3422 * old_rc_loc - dataset under which the root container dataset
3424 * new_rc_loc - dataset under which the root container dataset
3545 * Replace the root container dataset
3626 * container_ds - container dataset for the zone.