/osnet-11/usr/src/lib/pyzfs/common/ |
H A D | holds.py | 32 import zfs.dataset namespace 64 for ds in zfs.dataset.snapshots_fromcmdline(args, options.recursive):
|
H A D | userspace.py | 35 import zfs.dataset namespace 203 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
|
H A D | allow.py | 29 import zfs.dataset namespace 220 diff=_("Allows lookup of paths within a dataset,\n\t\t\t\tgiven an object number. Ordinary users need this\n\t\t\t\tin order to use zfs diff"), 229 key=_("Allows load/unload of dataset key"), 249 return zfs.dataset.getpropobj(permname).name 327 ds = zfs.dataset.Dataset(sys.argv[2], snaps=False) 392 ds = zfs.dataset.Dataset(fsname, snaps=False)
|
/osnet-11/usr/src/lib/libshare/common/ |
H A D | libshare_cache.c | 152 * sh_path : path or dataset, can be NULL 167 * shares for the specified dataset/file system. 187 * sh_path : path or dataset, can be NULL 201 * shares for the specified dataset/file system. 277 * routine to prepare for retrieving shares from the cache by dataset name. 280 * sh_path : dataset name 298 sacache_share_ds_find_init(const char *dataset, sa_proto_t proto, void **hdl) argument 306 return (ops->sac_share_ds_find_init(dataset, proto, hdl));
|
H A D | libshare_fs.c | 180 * likely because the zfs dataset was added 431 char *mntpnt, size_t mp_len, sa_fs_t *fstypep, char *dataset, size_t ds_len, 446 dataset, ds_len, mntopts, opt_len); 430 safs_get_mntpnt_for_path(libshare_handle_t *shdl, const char *sh_path, char *mntpnt, size_t mp_len, sa_fs_t *fstypep, char *dataset, size_t ds_len, char *mntopts, size_t opt_len) argument
|
H A D | libshare.c | 1768 * Publish all shares on the dataset for the specified protocols . 2425 * If sh_path is non NULL, search specified dataset for sh_name. 2680 * read from current dataset 2689 * no share found on current dataset. 2814 char *mntpnt, size_t mp_len, sa_fs_t *fstypep, char *dataset, size_t ds_len, 2824 dataset, ds_len, mntopts, opt_len); 2909 * Return the sharenfs/sharesmb property value from ZFS dataset 2813 sa_get_mntpnt_for_path(libshare_handle_t *shdl, const char *sh_path, char *mntpnt, size_t mp_len, sa_fs_t *fstypep, char *dataset, size_t ds_len, char *mntopts, size_t opt_len) argument
|
/osnet-11/usr/src/lib/pam_modules/zfs_key/ |
H A D | zfs_key.c | 186 char dataset[ZFS_MAXNAMELEN]; local 259 (void) snprintf(dataset, sizeof (dataset), "%s/%s", homes, user); 261 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_FILESYSTEM); 287 err = zfs_create(g_zfs, dataset, ZFS_TYPE_FILESYSTEM, props); 296 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_FILESYSTEM); 327 "home dir %s for %s is not encrytped", dataset, user); 339 dataset, user, keysource); 375 dataset, libzfs_error_description(g_zfs)); 384 dataset, 447 char dataset[ZFS_MAXNAMELEN]; local [all...] |
/osnet-11/usr/src/lib/libshare_plugins/zfs/ |
H A D | libshare_zfs.c | 155 * in case the dataset mountpoint is modified after the 459 * Return the mountpoint and optionally the dataset name from a 464 char *mntpnt, size_t mplen, char *dataset, size_t dslen, char *mntopt, 474 dataset, dslen, mntopt, optlen); 463 sa_zfs_get_mntpnt_for_path(libshare_handle_t *shdl, const char *sh_path, char *mntpnt, size_t mplen, char *dataset, size_t dslen, char *mntopt, size_t optlen) argument
|
/osnet-11/usr/src/lib/libbe/common/ |
H A D | be_list.c | 85 * Also data, such as dataset and snapshot properties, 261 * zone_be_container_ds - The dataset for the zone. 297 "the zone BE dataset %s: %s\n"), zone_be_container_ds, 336 * zlp - handle to the first zfs dataset. (provided by the 363 * Generate string for the BE container dataset 369 * If a BE name was specified we use it's root dataset in place of 370 * the container dataset. This is because we only want to collect 375 * Generate string for the BE root dataset 384 * Check if the dataset exists 388 * The specified dataset doe 986 be_get_ds_data( zfs_handle_t *zfshp, char *name, be_dataset_list_t *dataset, be_node_list_t *node) argument [all...] |
H A D | be_utils.c | 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) argument 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 i 363 be_make_name_from_ds(const char *dataset, char *rc_loc) argument 1582 update_dataset(char *dataset, int dataset_len, char *be_name, char *old_rc_loc, char *new_rc_loc) argument [all...] |
/osnet-11/usr/src/lib/libzfs/common/ |
H A D | libzfs_graph.c | 27 * dataset hierarchy, but also arbitrary hierarchies due to clones. We want to 40 * In order to construct this graph, we have to walk every dataset in the pool, 46 * starting from the initial node. At each dataset, we construct a node in the 58 * dataset, and then walk the results in reverse. 86 * Vertex structure. Indexed by dataset name, this structure maintains a list 119 * Graph structure. Vertices are maintained in a hash indexed by dataset name. 158 zfs_vertex_create(libzfs_handle_t *hdl, const char *dataset) argument 165 assert(strlen(dataset) < ZFS_MAXNAMELEN); 167 (void) strlcpy(zvp->zv_dataset, dataset, sizeof (zvp->zv_dataset)); 256 zfs_graph_create(libzfs_handle_t *hdl, const char *dataset, size_ argument 319 zfs_graph_lookup(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset, uint64_t txg) argument 406 iterate_children(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset) argument 499 external_dependents(libzfs_handle_t *hdl, zfs_graph_t *zgp, const char *dataset) argument 534 construct_graph(libzfs_handle_t *hdl, const char *dataset) argument 639 get_dependents(libzfs_handle_t *hdl, boolean_t allowrecursion, const char *dataset, char ***result, size_t *count) argument [all...] |
H A D | libzfs_changelist.c | 43 * Structure to keep track of dataset state. Before changing the 'sharenfs' or 46 * dataset after the property has been changed. 92 * Returns B_TRUE if this changenode represents a dependent of the dataset that 93 * received the change event, or B_FALSE if it represents the dataset that 103 * If this changenode represents the dataset that received the change 186 * is still being inherited at this dataset. 196 * If we are in the global zone, but this dataset is exported 272 * If renaming the dataset, then all of the auto share names need to change, 318 * If we are in the global zone, but this dataset is exported 525 * mountpoint. All other datasets will have inherited from this dataset 587 isa_child_of(const char *dataset, const char *parent) argument [all...] |
H A D | libzfs_util.c | 91 return (dgettext(TEXT_DOMAIN, "pool or dataset is busy")); 93 return (dgettext(TEXT_DOMAIN, "pool or dataset exists")); 95 return (dgettext(TEXT_DOMAIN, "no such pool or dataset")); 99 return (dgettext(TEXT_DOMAIN, "dataset is read-only")); 132 return (dgettext(TEXT_DOMAIN, "dataset in use by local zone")); 157 return (dgettext(TEXT_DOMAIN, "recursive dataset dependency")); 170 return (dgettext(TEXT_DOMAIN, "dataset name is too long")); 196 "on this dataset")); 204 return (dgettext(TEXT_DOMAIN, "no such tag on this dataset")); 207 "dataset")); 973 get_mnttab_info(struct mnttab *mte, char *mntpnt, size_t mplen, char *dataset, size_t dslen, char *mntopts, size_t optlen) argument 997 zfs_path_to_mntpnt(libzfs_handle_t *hdl, const char *path, char *mntpnt, size_t mplen, char *dataset, size_t dslen, char *mntopts, size_t optlen) argument [all...] |
H A D | libzfs_share.c | 82 * This dataset supports ZFS style shares. 277 * Fill in the mountpoint based on the dataset path in case 752 * Can be called on a share or a dataset (for auto share). 801 * make sure path is located on this dataset 829 "share path '%s' is not in dataset '%s' (share '%s')"), 1033 SHARING_NEW_FS, /* newly created filesystem dataset */ 2264 zfssa_share_storage_read_s2(libzfs_handle_t *hdl, const char *dataset, argument 2297 rc = zfs_share_resource_read(hdl, (char *)dataset, (char *)mntpnt, 2640 * return next zfs_handle_t for each share in this dataset, including auto share 2718 char dataset[MAXPATHLE member in struct:zfs_share_iter 3802 zfs_share_resource_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_share_resource_op_t cmd, char *resource1, char *resource2, int val1) argument 3869 zfs_share_resource_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 3877 zfs_share_resource_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument 3884 zfs_share_resource_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument 3892 zfs_share_resource_read(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, char *share_data, int len) argument 3900 zfs_share_resource_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, boolean_t persist) argument 3982 zfs_share_resource_write(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, char *share_data, int len) argument [all...] |
/osnet-11/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.c | 83 zjni_get_dataset_from_snapshot(const char *snapshot, char *dataset, argument 87 (void) strncpy(dataset, snapshot, len); 88 at = strchr(dataset, '@');
|
/osnet-11/usr/src/lib/libshadowfs/common/ |
H A D | shadow_conspiracy.c | 31 * in a hash indexed by dataset. We then maintain a pool of worker 47 * iterate over the table, the previous dataset name must be cached in 86 char *swe_dataset; /* corresponding dataset */ 176 char dataset[ZFS_MAXNAMELEN]; local 186 dataset[0] = '\0'; 213 if (dataset[0] == '\0' || 214 (nsp = shadow_hash_lookup(scp->sc_hash, dataset)) == NULL || 305 * Copy the dataset name into our local storage before dropping 309 (void) strlcpy(dataset, nsp->swe_dataset, sizeof (dataset)); 801 shadcons_cancel_common(shadow_conspiracy_t *scp, const char *dataset, boolean_t docancel) argument 836 shadcons_cancel(shadow_conspiracy_t *scp, const char *dataset) argument 842 shadcons_stop(shadow_conspiracy_t *scp, const char *dataset) argument 848 shadcons_start(shadow_conspiracy_t *scp, const char *dataset, const char *mountpoint, const char *source, boolean_t *is_new) argument 953 shadcons_status(shadow_conspiracy_t *scp, const char *dataset, shadow_conspiracy_status_t *statp) argument [all...] |
/osnet-11/usr/src/lib/libsmb/common/ |
H A D | smb_util.c | 732 * Resolve the ZFS dataset from a path. 736 smb_getdataset(const char *path, char *dataset, size_t len) argument 745 (void) strlcpy(dataset, resource, len); 755 * dataset is mounted on / the mountpoint property may still contain some
|
/osnet-11/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 58 #define DTD_ELEM_DATASET ((const xmlChar *) "dataset") 326 get_zonepath_ds(const char *zonepath, char *dataset, size_t len) argument 345 if (strlcpy(dataset, result.mnt_special, len) >= len) { 1057 * Walks the platform, searching for <dataset> elements, calling the
|