Searched defs:dataset (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/lib/pyzfs/common/
H A Dholds.py34 import zfs.dataset namespace
66 for ds in zfs.dataset.snapshots_fromcmdline(args, options.recursive):
H A Duserspace.py37 import zfs.dataset namespace
205 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
H A Dallow.py31 import zfs.dataset namespace
223 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"),
251 return zfs.dataset.getpropobj(permname).name
268 for (name, prop) in sorted(zfs.dataset.proptable.items()):
328 ds = zfs.dataset.Dataset(sys.argv[2], snaps=False)
388 ds = zfs.dataset.Dataset(fsname, snaps=False)
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dhomedir.c75 char *dataset; local
103 if ((dataset = get_mnt_special(pdir, stbuf.st_fstype))
109 dataset, bname);
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c78 * Given a full path to a file, translate into a dataset name and a relative
79 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters,
84 parse_pathname(const char *inpath, char *dataset, char *relpath, argument
144 (void) strcpy(dataset, mp.mnt_special);
155 * Convert from a dataset to a objset id. Note that
159 object_from_path(const char *dataset, uint64_t object, zinject_record_t *record) argument
163 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
242 int level, zinject_record_t *record, char *poolname, char *dataset)
281 dataset[
241 translate_record(err_type_t type, const char *object, const char *range, int level, zinject_record_t *record, char *poolname, char *dataset) argument
[all...]
H A Dzinject.c123 * does an unmount and remount of the underlying dataset to aid in flushing the
732 char dataset[MAXNAMELEN]; local
1015 dataset[0] = '\0';
1050 dataset[0] = '\0';
1083 dataset[0] = '\0';
1113 dataset[0] = '\0';
1125 dataset[0] = '\0';
1176 dataset) != 0)
1187 if (dataset[0] != '\0' && domount) {
1188 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASE
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c48 * is expecting a path that is the root of the dataset.
51 * in the dataset that was opened. The iterator function gets
99 * path - path of the dataset
100 * count - return value of the number of snapshots for the dataset
105 char dataset[MAXPATHLEN]; local
116 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) {
121 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) {
139 * path - is the path of the dataset
151 char dataset[MAXPATHLEN]; local
179 if (smb_getdataset(libhd, path, dataset, MAXPATHLE
241 char dataset[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsrvsvc_sd.c57 char dataset[MAXPATHLEN]; local
66 ret = smb_getdataset(libhd, si->shr_path, dataset, MAXPATHLEN);
73 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) {
H A Dsmb_quota.c143 * handle to zfs library and dataset
1079 * Initialize zfs library and dataset handles
1084 char dataset[MAXPATHLEN]; local
1089 if (smb_getdataset(zfs_hdl->z_lib, path, dataset, MAXPATHLEN) != 0) {
1094 zfs_hdl->z_fs = zfs_open(zfs_hdl->z_lib, dataset, ZFS_TYPE_DATASET);
1106 * Close zfs library and dataset handles
H A Dsmb_share.c2240 char buf[MAXPATHLEN]; /* dataset or mountpoint */
2287 char buf[MAXPATHLEN]; /* dataset or mountpoint */
2322 char dataset[MAXPATHLEN]; local
2327 if (smb_getdataset(libhd, from->shr_path, dataset, MAXPATHLEN) != 0) {
2332 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_FILESYSTEM)) == NULL) {
2338 ret = zfs_smb_acl_rename(libhd, dataset, from->shr_path,
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_util.c83 zjni_get_dataset_from_snapshot(const char *snapshot, char *dataset, argument
87 (void) strncpy(dataset, snapshot, len);
88 at = strchr(dataset, '@');
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c44 * Structure to keep track of dataset state. Before changing the 'sharenfs' or
47 * dataset after the property has been changed.
115 * If we are in the global zone, but this dataset is exported
171 * mountpoint. All other datasets will have inherited from this dataset
231 * If we are in the global zone, but this dataset is exported
292 * Is this "dataset" a child of "parent"?
295 isa_child_of(const char *dataset, const char *parent) argument
301 if (strncmp(dataset, parent, len) == 0 &&
302 (dataset[len] == '@' || dataset[le
[all...]
H A Dlibzfs_dataset.c102 * Validate a ZFS path. This is used even before trying to open the dataset, to
279 * Returns a handle to the pool that contains the provided dataset.
430 * Makes a handle from the given dataset name. Used by zfs_open() and
440 * We've managed to open the dataset and gather statistics. Determine
697 * Try to get stats for the dataset, which will tell us if it
712 * to get the parent dataset name only.
719 * Create handle for the parent dataset.
1328 "dataset in a non-global zone"),
1340 "'%s' cannot be set while dataset "
1726 "pool and or dataset mus
4636 zfs_deleg_share_nfs(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, void *export, void *sharetab, int sharemax, zfs_share_op_t operation) argument
4687 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument
4737 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4745 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4753 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument
4760 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument
[all...]
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_list.c104 * Also data, such as dataset and snapshot properties,
350 * zone_be_container_ds - The dataset for the zone.
384 "the zone BE dataset %s: %s\n"), zone_be_container_ds,
421 * zlp - handle to the first zfs dataset. (provided by the
444 * Generate string for the BE container dataset
450 * If a BE name was specified we use it's root dataset in place of
451 * the container dataset. This is because we only want to collect
458 * Generate string for the BE root dataset
467 * Check if the dataset exists
472 * The specified dataset doe
642 be_dataset_list_t *dataset; local
1172 be_get_ds_data( zfs_handle_t *zfshp, char *name, be_dataset_list_t *dataset, be_node_list_t *node) argument
[all...]
H A Dbe_utils.c297 * Description: Returns the available size for the zfs dataset passed in.
299 * dataset - The dataset we want to get the available space for.
307 be_max_avail(char *dataset, uint64_t *ret) argument
316 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
434 * Description: Generate string for BE's root dataset given the pool
439 * be_root_ds - pointer to buffer to return BE root dataset in.
464 * In non-global zone we can use path from mounted root dataset
465 * to generate BE's root dataset string.
472 "dataset i
564 be_make_name_from_ds(const char *dataset, char *rc_loc) argument
3419 update_dataset(char *dataset, int dataset_len, char *be_name, char *old_rc_loc, char *new_rc_loc) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c278 getzfsquota(uid_t user, char *dataset, struct dqblk *zq) argument
287 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) {
288 syslog(LOG_ERR, "can not open zfs dataset %s", dataset);
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c871 getzfsquota(char *user, char *dataset, struct dqblk *zq) argument
880 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_zfs.c142 * $ZFS_MODE: d | r | p [for dataset, recursive, or package]
602 * dataset ('d'): Only the dataset specified (i.e., top level) is backed up
603 * recursive ('r'): The dataset and its child file systems are backed up
1165 * Make sure the path is of an existing dataset
1234 * be of the form "/dataset[@snap]". The leading slash is required
1237 * (Note: "dataset" can consist of more than one component,
1240 * The dataset name and the snapshot name (if any) will be
1324 "Restore dataset exists.\n"
1325 "A nonexistent dataset mus
1355 char *dataset = ndmpd_zfs_args->nz_dataset; local
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c1353 * Notifies ndmpd that the metadata associated with the given ZFS dataset
1357 ndmp_include_zfs(ndmp_context_t *nctx, const char *dataset) argument
1383 if ((zhp = zfs_open(zlibh, dataset, ZFS_TYPE_DATASET)) == NULL) {
1414 (void) strlcpy(mhp->nh_dataset, dataset, sizeof (mhp->nh_dataset));
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c624 * Resolve the ZFS dataset from a path.
627 * -1 = Failure to open /etc/mnttab file or to get ZFS dataset.
630 smb_getdataset(libzfs_handle_t *libhdl, const char *path, char *dataset, argument
642 * the dataset name can be determined from path.
643 * Attempt to open dataset by derived name and, if successful,
657 (void) strlcpy(dataset, dsname, len);
691 (void) strlcpy(dataset, cp, len);
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c422 lzc_exists(const char *dataset) argument
433 (void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name));
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c235 * dataset.
238 get_legacy_mountpoint(const char *path, char *dataset, size_t dlen, argument
260 (void) strlcpy(dataset, entry.mnt_special,
291 * Search mmttab for mountpoint and get dataset.
322 * get the name of the ZFS dataset the path is equivalent to. The
323 * dataset name is used for get/set of ZFS properties since libzfs
324 * requires a dataset to do a zfs_open().
371 /* Couldn't find a matching dataset */
376 * get_zfs_property(dataset, property)
378 * Get the file system property specified from the ZFS dataset
382 get_zfs_property(char *dataset, zfs_prop_t property) argument
417 char *dataset; local
570 zfs_construct_resource(sa_share_t share, char *dataset) argument
587 zfs_inherited(sa_handle_t handle, sa_share_t share, char *sourcestr, char *shareopts, char *mountpoint, char *proto, char *dataset) argument
661 zfs_notinherited(sa_group_t group, sa_share_t share, char *mountpoint, char *shareopts, char *proto, char *dataset, int grouperr) argument
739 sa_zfs_process_share(sa_handle_t handle, sa_group_t group, sa_share_t share, char *mountpoint, char *proto, zprop_source_t source, char *shareopts, char *sourcestr, char *dataset) argument
798 char *dataset; local
1109 char *dataset = NULL; local
1220 char *dataset = NULL; local
1298 char *dataset = NULL; local
1446 char *dataset; local
1569 char dataset[ZFS_MAXPROPLEN]; local
1721 char *dataset, *lastcomma; local
[all...]
/illumos-gate/usr/src/lib/libshare/smb/
H A Dlibshare_smb.c1707 * Construct a name where the ZFS dataset has the prefix replaced with "name".
1713 char *dataset; local
1720 dataset = sa_get_share_attr(share, "dataset");
1721 if (dataset == NULL)
1727 if (strncmp(dataset, prefix, prelen) == 0)
1728 (void) strlcat(buf, dataset + prelen, bufsz);
1730 sa_free_attr_string(dataset);
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c1187 * the underlying ZFS dataset if necessary and get the real value.
1193 char *dataset, *slash; local
1207 if ((dataset = strdup(DFR_SPECIAL(dfrp))) == NULL)
1210 slash = dataset + strlen(dataset);
1217 zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
1234 if ((slash = strrchr(dataset, '/')) == NULL) {
1251 free(dataset);
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfsimpl.c2950 dnode_phys_t child_dir_zap, dataset, dir, parent; local
2959 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) {
2960 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum);
2963 ds = (dsl_dataset_phys_t *)&dataset.dn_bonus;
3062 dnode_phys_t child_dir_zap, dir, dataset; local
3066 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) {
3067 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum);
3070 ds = (dsl_dataset_phys_t *)&dataset.dn_bonus;
3094 dnode_phys_t child_dir_zap, dir, dataset; local
3101 err = objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset);
3151 dnode_phys_t dataset; local
[all...]

Completed in 434 milliseconds

12