Lines Matching defs:dataset

295  * Description:	Returns the available size for the zfs dataset passed in.
297 * dataset - The dataset we want to get the available space for.
305 be_max_avail(char *dataset, uint64_t *ret)
314 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
432 * Description: Generate string for BE's root dataset given the pool
437 * be_root_ds - pointer to buffer to return BE root dataset in.
462 * In non-global zone we can use path from mounted root dataset
463 * to generate BE's root dataset string.
470 "dataset is not mounted\n"));
478 * Description: Generate string for the BE container dataset given a pool name.
482 * dataset in.
511 "dataset is not mounted\n"));
519 * Description: This function takes a dataset name and strips off the
520 * BE container dataset portion from the beginning. The
524 * dataset - dataset to get name from.
525 * rc_loc - dataset underwhich the root container dataset lives.
527 * name of dataset relative to BE container dataset.
528 * NULL if dataset is not under a BE root dataset.
533 be_make_name_from_ds(const char *dataset, char *rc_loc)
544 * First token is the location of where the root container dataset
547 if (strncmp(dataset, rc_loc, rlen) == 0 && dataset[rlen] == '/')
548 (void) strlcpy(ds, dataset + rlen + 1, sizeof (ds));
559 /* Second token must be BE container dataset name */
604 * be_orig_root_ds - The root dataset for the BE. This is
647 "pool dataset for %s: %s\n"), be_root_pool,
653 * Check to see if the pool's dataset is mounted. If it isn't we'll
658 be_print_err(gettext("be_append_menu: pool dataset "
665 * Get the mountpoint for the root pool dataset.
669 "dataset (%s) is not mounted. Can't set "
693 * original root dataset for a BE we're cloning from, we need to keep
940 /* Get name of BE's root dataset */
943 /* Get handle to pool dataset */
946 "failed to open pool dataset for %s: %s"),
952 * Check to see if the pool's dataset is mounted. If it isn't we'll
957 be_print_err(gettext("be_remove_menu: pool dataset "
964 * Get the mountpoint for the root pool dataset.
968 "dataset (%s) is not mounted. Can't set "
1350 * Description: This function returns the dataset in the default entry of
1392 /* Get handle to pool dataset */
1395 "failed to open pool dataset for %s: %s"),
1401 * Check to see if the pool's dataset is mounted. If it isn't we'll
1406 be_print_err(gettext("be_default_grub_bootfs: pool dataset "
1413 * Get the mountpoint for the root pool dataset.
1550 /* Generate string for BE's root dataset */
1553 /* Get handle to pool dataset */
1556 "failed to open pool dataset for %s: %s"),
1562 * Check to see if the pool's dataset is mounted. If it isn't we'll
1567 be_print_err(gettext("be_change_grub_default: pool dataset "
1574 * Get the mountpoint for the root pool dataset.
1578 "dataset (%s) is not mounted. Can't set "
1781 "pool dataset for %s: %s\n"), be_root_pool,
1787 * Check to see if the pool's dataset is mounted. If it isn't we'll
1792 be_print_err(gettext("be_update_menu: pool dataset "
1799 * Get the mountpoint for the root pool dataset.
1945 * dataset value.
1958 * write out the new root dataset value
2022 * Description: Checks to see if the BEs root dataset has an entry in the grub
2025 * be_dataset - The root dataset of the BE
2055 "pool dataset for %s: %s\n"), be_root_pool,
2061 * Check to see if the pool's dataset is mounted. If it isn't we'll
2066 be_print_err(gettext("be_has_menu_entry: pool dataset "
2073 * Get the mountpoint for the root pool dataset.
2077 "dataset (%s) is not mounted. Can't set "
2144 * The entry's root container dataset and be_name will be
2148 * old_rc_loc - dataset under which the root container dataset
2150 * new_rc_loc - dataset under which the root container dataset
2216 * The entry's root container dataset and be_name will be
2219 * zhp - zfs_handle_t pointer to zone root dataset.
2221 * old_rc_loc - dataset under which the root container dataset
2223 * new_rc_loc - dataset under which the root container dataset
2370 * container_ds - container dataset for the zone.
2410 * A BE name must not be a multi-level dataset name. We also check
2424 * The BE name must comply with a zfs dataset filesystem. We also
2690 * Generate string for BE container dataset
2699 "zone root dataset is not mounted\n"));
2708 * Check if a BE container dataset exists in this pool.
2716 * Get handle to this zpool's BE container dataset.
2721 "failed to open BE container dataset (%s)\n"),
2732 * Found current BE dataset; set obe_zpool
2763 * are set to the BE name and BE's root dataset
2778 * Check if dataset is mounted, and if so where.
2818 * Description: This function checks whether or not the dataset name passed
2819 * is hierachically located under the BE root container dataset
2823 * data - name of dataset to check
2825 * 0 - dataset is not in this pool's BE root container dataset
2826 * 1 - dataset is in this pool's BE root container dataset
2837 /* Generate string for this pool's BE root container dataset */
2841 * If dataset lives under the BE root container dataset
3008 return (gettext("Invalid dataset type."));
3018 return (gettext("Invalid property for dataset."));
3039 "Property is not inheritable for the BE dataset."));
3057 return (gettext("Read only dataset."));
3370 * Description: This function takes a dataset name and replaces the zpool
3371 * and be_name components of the dataset with the new be_name
3374 * dataset - name of dataset
3375 * dataset_len - lenth of buffer in which dataset is passed in.
3377 * old_rc_loc - dataset under which the root container dataset
3379 * new_rc_loc - dataset under which the root container dataset
3388 update_dataset(char *dataset, int dataset_len, char *be_name,
3394 /* Tear off the BE container dataset */
3395 if ((ds = be_make_name_from_ds(dataset, old_rc_loc)) == NULL) {
3399 /* Get dataset name relative to BE root, if there is one */
3402 /* Generate the BE root dataset name */
3403 be_make_root_ds(new_rc_loc, be_name, dataset, dataset_len);
3405 /* If a subordinate dataset name was found, append it */
3407 (void) strlcat(dataset, sub_ds, dataset_len);
3416 * root container dataset location and be_name for all
3421 * old_rc_loc - dataset under which the root container dataset
3423 * new_rc_loc - dataset under which the root container dataset
3544 * Replace the root container dataset
3625 * container_ds - container dataset for the zone.