/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | holds.py | 33 import zfs.dataset namespace 65 for ds in zfs.dataset.snapshots_fromcmdline(args, options.recursive):
|
H A D | userspace.py | 36 import zfs.dataset namespace 204 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
|
H A D | allow.py | 30 import zfs.dataset namespace 222 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"), 250 return zfs.dataset.getpropobj(permname).name 267 for (name, prop) in sorted(zfs.dataset.proptable.iteritems()): 327 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 D | homedir.c | 75 char *dataset; local 103 if ((dataset = get_mnt_special(pdir, stbuf.st_fstype)) 109 dataset, bname);
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_sd.c | 56 char dataset[MAXPATHLEN]; local 62 ret = smb_getdataset(si->shr_path, dataset, MAXPATHLEN); 69 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) {
|
H A D | smb_quota.c | 143 * handle to zfs library and dataset 1079 * Initialize zfs library and dataset handles 1084 char dataset[MAXPATHLEN]; local 1086 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) 1092 zfs_hdl->z_fs = zfs_open(zfs_hdl->z_lib, dataset, ZFS_TYPE_DATASET); 1104 * Close zfs library and dataset handles
|
H A D | smb_share.c | 2035 char buf[MAXPATHLEN]; /* dataset or mountpoint */ 2075 char buf[MAXPATHLEN]; /* dataset or mountpoint */ 2113 char dataset[MAXPATHLEN]; local 2115 if (smb_getdataset(from->shr_path, dataset, MAXPATHLEN) != 0) 2121 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_FILESYSTEM)) == NULL) { 2127 ret = zfs_smb_acl_rename(libhd, dataset, from->shr_path,
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 83 * Given a full path to a file, translate into a dataset name and a relative 84 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters, 89 parse_pathname(const char *inpath, char *dataset, char *relpath, argument 149 (void) strcpy(dataset, mp.mnt_special); 160 * Convert from a (dataset, path) pair into a (objset, object) pair. Note that 166 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, argument 178 err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os); 180 (void) fprintf(stderr, "cannot open dataset '%s': %s\n", 181 dataset, strerro 197 calculate_range(const char *dataset, err_type_t type, int level, char *range, zinject_record_t *record) argument 332 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 D | zinject.c | 123 * does an unmount and remount of the underlying dataset to aid in flushing the 671 char dataset[MAXNAMELEN]; local 937 dataset[0] = '\0'; 971 dataset[0] = '\0'; 1003 dataset[0] = '\0'; 1024 dataset[0] = '\0'; 1036 dataset[0] = '\0'; 1060 dataset) != 0) 1071 if (dataset[0] != '\0' && domount) { 1072 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASE [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 48 * 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 113 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) 119 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { 137 * path - is the path of the dataset 149 char dataset[MAXPATHLEN]; local 171 if (smb_getdataset(path, dataset, MAXPATHLE 237 char dataset[MAXPATHLEN]; local [all...] |
/illumos-gate/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, '@');
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 276 getzfsquota(uid_t user, char *dataset, struct dqblk *zq) argument 285 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) { 286 syslog(LOG_ERR, "can not open zfs dataset %s", dataset);
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_list.c | 98 * Also data, such as dataset and snapshot properties, 344 * zone_be_container_ds - The dataset for the zone. 380 "the zone BE dataset %s: %s\n"), zone_be_container_ds, 419 * zlp - handle to the first zfs dataset. (provided by the 442 * Generate string for the BE container dataset 448 * If a BE name was specified we use it's root dataset in place of 449 * the container dataset. This is because we only want to collect 456 * Generate string for the BE root dataset 465 * Check if the dataset exists 470 * The specified dataset doe 1182 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 | 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) argument 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 i 533 be_make_name_from_ds(const char *dataset, char *rc_loc) argument 3388 update_dataset(char *dataset, int dataset_len, char *be_name, char *old_rc_loc, char *new_rc_loc) argument [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_changelist.c | 44 * 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 168 * mountpoint. All other datasets will have inherited from this dataset 204 * If we are in the global zone, but this dataset is exported 264 * Is this "dataset" a child of "parent"? 267 isa_child_of(const char *dataset, const char *parent) argument 273 if (strncmp(dataset, parent, len) == 0 && 274 (dataset[len] == '@' || dataset[le [all...] |
H A D | libzfs_dataset.c | 96 * Validate a ZFS path. This is used even before trying to open the dataset, to 274 * Returns a handle to the pool that contains the provided dataset. 425 * Makes a handle from the given dataset name. Used by zfs_open() and 435 * We've managed to open the dataset and gather statistics. Determine 690 * Try to get stats for the dataset, which will tell us if it 705 * to get the parent dataset name only. 712 * Create handle for the parent dataset. 1276 "dataset in a non-global zone"), 1296 "'%s' cannot be set while dataset " 1552 "pool and or dataset mus 4264 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 4315 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument 4365 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4373 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4381 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument 4388 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument [all...] |
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 323 lzc_exists(const char *dataset) argument 331 (void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name));
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 871 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/lib/libshare/common/ |
H A D | libshare_zfs.c | 231 * dataset. 234 get_legacy_mountpoint(char *path, char *dataset, size_t dlen, argument 255 (void) strlcpy(dataset, entry.mnt_special, 267 * get the name of the ZFS dataset the path is equivalent to. The 268 * dataset name is used for get/set of ZFS properties since libzfs 269 * requires a dataset to do a zfs_open(). 277 char *dataset = NULL; local 295 * Search mmttab for mountpoint and get dataset. 301 dataset = mountpoint; 319 dataset 338 get_zfs_property(char *dataset, zfs_prop_t property) argument 373 char *dataset; local 526 zfs_construct_resource(sa_share_t share, char *dataset) argument 543 zfs_inherited(sa_handle_t handle, sa_share_t share, char *sourcestr, char *shareopts, char *mountpoint, char *proto, char *dataset) argument 617 zfs_notinherited(sa_group_t group, sa_share_t share, char *mountpoint, char *shareopts, char *proto, char *dataset, int grouperr) argument 695 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 783 char *dataset; local 933 char *dataset = NULL; local 1044 char *dataset = NULL; local 1122 char *dataset = NULL; local 1270 char *dataset; local 1393 char dataset[ZFS_MAXPROPLEN]; local 1545 char *dataset, *lastcomma; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 624 * Resolve the ZFS dataset from a path. 627 * -1 = Failure to open /etc/mnttab file or to get ZFS dataset. 630 smb_getdataset(const char *path, char *dataset, size_t len) argument 663 (void) strlcpy(dataset, cp, len);
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_zfs.c | 142 * $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 D | tlm_backup_reader.c | 1353 * 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/libshare/smb/ |
H A D | libshare_smb.c | 1700 * Construct a name where the ZFS dataset has the prefix replaced with "name". 1706 char *dataset; local 1713 dataset = sa_get_share_attr(share, "dataset"); 1714 if (dataset == NULL) 1720 if (strncmp(dataset, prefix, prelen) == 0) 1721 (void) strlcat(buf, dataset + prelen, bufsz); 1723 sa_free_attr_string(dataset);
|
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | zfsimpl.c | 1775 dnode_phys_t child_dir_zap, dataset, dir, parent; local 1784 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) { 1785 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum); 1788 ds = (dsl_dataset_phys_t *)&dataset.dn_bonus; 1881 dnode_phys_t child_dir_zap, dir, dataset; local 1885 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) { 1886 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum); 1889 ds = (dsl_dataset_phys_t *) &dataset.dn_bonus; 1911 dnode_phys_t child_dir_zap, dir, dataset; local 1916 err = objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset); 1956 dnode_phys_t dataset; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | df.c | 1242 * the underlying ZFS dataset if necessary and get the real value. 1248 char *dataset, *slash; local 1262 if ((dataset = strdup(DFR_SPECIAL(dfrp))) == NULL) 1265 slash = dataset + strlen(dataset); 1272 zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET); 1289 if ((slash = strrchr(dataset, '/')) == NULL) { 1306 free(dataset);
|