/freebsd-9.3-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_zone.c | 59 zone_dataset_attach(struct ucred *cred, const char *dataset, int jailid) argument 70 zd = malloc(sizeof(*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK); 84 if (strcmp(dataset, zd2->zd_dataset) == 0) { 100 strcpy(zd->zd_dataset, dataset); 111 zone_dataset_detach(struct ucred *cred, const char *dataset, int jailid) argument 132 if (strcmp(dataset, zd->zd_dataset) == 0) 150 * Returns true if the named dataset is visible in the current zone. 151 * The 'write' parameter is set to 1 if the dataset is also writable. 154 zone_dataset_visible(const char *dataset, int *write) argument 162 if (dataset[ [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zinject/ |
H A D | translate.c | 81 * Given a full path to a file, translate into a dataset name and a relative 82 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters, 87 parse_pathname(const char *inpath, char *dataset, char *relpath, argument 132 (void) strcpy(dataset, sfs.f_mntfromname); 143 * Convert from a (dataset, path) pair into a (objset, object) pair. Note that 149 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, argument 161 err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os); 163 (void) fprintf(stderr, "cannot open dataset '%s': %s\n", 164 dataset, strerro 180 calculate_range(const char *dataset, err_type_t type, int level, char *range, zinject_record_t *record) argument 315 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.h | 58 int level, zinject_record_t *record, char *poolname, char *dataset);
|
H A D | zinject.c | 123 * does an unmount and remount of the underlying dataset to aid in flushing the 571 char dataset[MAXNAMELEN]; local 836 dataset[0] = '\0'; 870 dataset[0] = '\0'; 902 dataset[0] = '\0'; 923 dataset[0] = '\0'; 935 dataset[0] = '\0'; 959 dataset) != 0) 970 if (dataset[0] != '\0' && domount) { 971 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASE [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | holds.py | 33 import zfs.dataset 65 for ds in zfs.dataset.snapshots_fromcmdline(args, options.recursive):
|
H A D | allow.py | 30 import zfs.dataset 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)
|
H A D | userspace.py | 36 import zfs.dataset 204 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
|
/freebsd-9.3-release/usr.bin/ministat/ |
H A D | ministat.c | 134 struct dataset { struct 142 static struct dataset * 145 struct dataset *ds; 154 AddPoint(struct dataset *ds, double a) 171 Min(struct dataset *ds) 178 Max(struct dataset *ds) 185 Avg(struct dataset *ds) 192 Median(struct dataset *ds) 199 Var(struct dataset *ds) 206 Stddev(struct dataset *d [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_changelist.c | 45 * Structure to keep track of dataset state. Before changing the 'sharenfs' or 48 * dataset after the property has been changed. 116 * If we are in the global zone, but this dataset is exported 168 * mountpoint. All other datasets will have inherited from this dataset 206 * If we are in the global zone, but this dataset is exported 267 * Is this "dataset" a child of "parent"? 270 isa_child_of(const char *dataset, const char *parent) argument 276 if (strncmp(dataset, parent, len) == 0 && 277 (dataset[len] == '@' || dataset[le [all...] |
H A D | libzfs_impl.h | 191 boolean_t isa_child_of(const char *dataset, const char *parent);
|
H A D | libzfs_dataset.c | 87 * Given a path and mask of ZFS types, return a string describing this dataset. 88 * This is used when we fail to open a dataset and we cannot get an exact type. 106 * The user is requesting more than one type of dataset. If this is the 130 * Validate a ZFS path. This is used even before trying to open the dataset, to 288 * Returns a handle to the pool that contains the provided dataset. 439 * Makes a handle from the given dataset name. Used by zfs_open() and 449 * We've managed to open the dataset and gather statistics. Determine 666 "invalid dataset name")); 672 * Try to get stats for the dataset, which will tell us if it exists. 1210 "dataset i 4091 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 4143 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument 4194 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4202 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4210 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument 4217 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument [all...] |
/freebsd-9.3-release/sys/boot/zfs/ |
H A D | zfsimpl.c | 1691 dnode_phys_t child_dir_zap, dataset, dir, parent; local 1700 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) { 1701 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum); 1704 ds = (dsl_dataset_phys_t *)&dataset.dn_bonus; 1797 dnode_phys_t child_dir_zap, dir, dataset; local 1801 if (objset_get_dnode(spa, &spa->spa_mos, objnum, &dataset)) { 1802 printf("ZFS: can't find dataset %ju\n", (uintmax_t)objnum); 1805 ds = (dsl_dataset_phys_t *) &dataset.dn_bonus; 1825 * Find the object set given the object number of its dataset object 1831 dnode_phys_t dataset; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 369 lzc_exists(const char *dataset) argument 377 (void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name));
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | dnssec.c | 833 dns_rdataset_t *dataset; local 941 dataset = NULL; 942 RETERR(dns_message_gettemprdataset(msg, &dataset)); 943 dns_rdataset_init(dataset); 944 RUNTIME_CHECK(dns_rdatalist_tordataset(datalist, dataset) == ISC_R_SUCCESS); 945 msg->sig0 = dataset;
|
H A D | tsig.c | 888 dns_rdataset_t *dataset; local 1129 dataset = NULL; 1130 ret = dns_message_gettemprdataset(msg, &dataset); 1139 dns_rdataset_init(dataset); 1140 RUNTIME_CHECK(dns_rdatalist_tordataset(datalist, dataset) 1142 msg->tsig = dataset;
|
H A D | master.c | 2871 dns_rdataset_t dataset; local 2882 dns_rdataset_init(&dataset); 2883 RUNTIME_CHECK(dns_rdatalist_tordataset(this, &dataset) 2885 dataset.trust = dns_trust_ultimate; 2889 if (dataset.type == dns_rdatatype_rrsig && 2891 dataset.attributes |= DNS_RDATASETATTR_RESIGN; 2893 dataset.resign = resign_fromlist(this, lctx->resign); 2896 &dataset));
|
/freebsd-9.3-release/usr.sbin/bsdinstall/scripts/ |
H A D | zfsboot | 48 # Default name for the boot environment parent dataset 119 # Boot Environment [BE] root and default boot dataset 887 # Creates boot pool and dataset layout. Returns error if something goes wrong. 1109 # Create ZFS dataset layout within the new root pool 1112 echo "$ZFSBOOT_DATASETS" | while read dataset options; do 1114 case "$dataset" in "#"*|"") continue; esac 1127 # Create the dataset with desired options 1129 "${options:+-o $options}" "$zroot_name$dataset" ||
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_main.c | 428 (void) fprintf(fp, gettext("\nEach dataset is of the form: " 429 "pool/[dataset/]*dataset[@name]\n")); 594 * Given an existing dataset, create a writable copy whose initial contents 595 * are the same as the source. The newly created dataset maintains a 635 (void) fprintf(stderr, gettext("missing source dataset " 640 (void) fprintf(stderr, gettext("missing target dataset " 649 /* open the source dataset */ 656 * Now create the ancestors of the target dataset. If the 700 * Create a new dataset 4583 const char *dataset; member in struct:allow_opts 6536 char *dataset, *path; local [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_ioctl.c | 65 * dataset is visible in this zone, and if the user has either all 67 * to do this operation on this dataset with "zfs allow". 71 * name, a dataset name, or nothing. If the name is not well-formed, 103 * The name of the pool or dataset to operate on, from 105 * expected type (pool, dataset, or none). 249 static int zfs_check_clearable(char *dataset, nvlist_t *props, 323 * Check to see if the named dataset is currently defined as bootable 400 * and can be used in the local zone, as there is no associated dataset. 410 * Policy for dataset read operations (list children, get statistics). Requires 425 zfs_dozonecheck_impl(const char *dataset, uint64_ argument 459 zfs_dozonecheck(const char *dataset, cred_t *cr) argument 470 zfs_dozonecheck_ds(const char *dataset, dsl_dataset_t *ds, cred_t *cr) argument 3169 zfs_fill_zplprops(const char *dataset, nvlist_t *createprops, nvlist_t *zplprops, boolean_t *is_ci) argument 4013 zfs_check_clearable(char *dataset, nvlist_t *props, nvlist_t **errlist) argument [all...] |