Searched defs:poolname (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c211 char *poolname; local
269 if ((poolname = pool_get_binding(id)) == NULL) {
274 (void) printf("%ld\t%s\n", id, poolname);
275 free(poolname);
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c333 int level, zinject_record_t *record, char *poolname, char *dataset)
375 (void) strcpy(poolname, object);
415 (void) strcpy(poolname, dataset);
416 if ((slash = strchr(poolname, '/')) != NULL)
332 translate_record(err_type_t type, const char *object, const char *range, int level, zinject_record_t *record, char *poolname, char *dataset) argument
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c141 char *poolname = NULL, *s; local
179 poolname = optarg;
205 if (poolname == NULL) {
206 fprintf(stderr, "poolname not given with add/remove node\n");
211 err = load_poolnode(0, poolname, &node, ioctl);
213 err = remove_poolnode(0, poolname, &node, ioctl);
223 char *poolname; local
230 poolname = NULL;
246 poolname = optarg;
282 if (poolname
383 char *kernel, *core, *poolname; local
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_config.c352 zpool_skip_pool(const char *poolname) argument
360 int namelen = strlen(poolname);
373 if (len == namelen && 0 == strncmp(cur, poolname, len))
387 if (len == namelen && 0 == strncmp(cur, poolname, len)) {
H A Dlibzfs_import.c1120 * poolname or guid (but not both) are provided by the caller when trying
1235 if (iarg->poolname != NULL) {
1241 strcmp(iarg->poolname, pname) == 0;
1313 * poolname or guid (but not both) are provided by the caller when trying
1318 char *poolname, uint64_t guid)
1330 verify(poolname == NULL || guid == 0);
1388 if (poolname != NULL && strcmp(poolname, name) != 0)
1430 if (import->poolname != NULL) {
1435 if (strcmp(pool_name, import->poolname)
1317 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument
[all...]
H A Dlibzfs.h366 char *poolname; /* name of a pool to find */ member in struct:importargs
370 int unique : 1; /* does 'poolname' already exist? */
H A Dlibzfs_pool.c423 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
538 if (strval[0] != '\0' && !bootfs_name_valid(poolname,
546 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) {
548 "could not open pool '%s'"), poolname);
4022 char poolname[ZFS_MAX_DATASET_NAME_LEN]; local
4051 (void) strncpy(poolname, volname, p - volname);
4052 poolname[p - volname] = '\0';
4055 if ((zhp = zpool_open(hdl, poolname)) == NULL) {
4057 "could not open pool '%s'"), poolname);
4065 "could not obtain vdev configuration for '%s'"), poolname);
[all...]
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c730 char *poolname = NULL; local
779 if ((poolname = strtok(mntsp, "/")) == NULL) {
784 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) {
785 (void) fprintf(stderr, gettext("Cannot open %s\n"), poolname);
/illumos-gate/usr/src/boot/sys/boot/zfs/
H A Dzfs.c612 static char poolname[ZFS_MAXNAMELEN]; local
629 memcpy(poolname, np, sep - np);
630 poolname[sep - np] = '\0';
639 spa = spa_find_by_name(poolname);
758 static char poolname[ZFS_MAXNAMELEN]; local
772 memcpy(poolname, name, len);
773 poolname[len] = '\0';
775 spa = spa_find_by_name(poolname);
813 static char poolname[ZFS_MAXNAMELEN], *dsname, *root; local
838 memcpy(poolname, nam
[all...]
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c2135 char poolname[MAXPATHLEN]; local
2144 error = zonecfg_get_pool(handle, poolname, sizeof (poolname));
2145 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) {
2161 "zone will not be bound to pool '%s'."), poolname);
2182 pool = pool_get_pool(poolconf, poolname);
2187 "using default pool"), poolname);
5346 char poolname[MAXPATHLEN]; local
5349 err2 = zonecfg_get_pool(handle, poolname, sizeof (poolname));
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c498 char *poolname; local
532 poolname = argv[0];
537 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
542 poolname);
565 print_vdev_tree(zhp, poolname, poolnvroot, 0, B_FALSE);
596 char *poolname; local
613 poolname = argv[0];
615 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
798 char *poolname; local
910 poolname
3184 char *poolname, *old_disk, *new_disk; local
3310 char *poolname, *path; local
3498 char *poolname; local
3576 char *poolname; local
3715 char *poolname; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa.c4232 char *poolname; local
4237 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname))
4263 poolname) == 0);
4294 "%s/%s", poolname, ++cp);
H A Dzfs_ioctl.c3316 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3324 if ((error = zfs_check_userprops(poolname, props)) != 0)
3328 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS))
3333 poollen = strlen(poolname);
3350 if (strncmp(name, poolname, poollen) != 0 ||
3378 char *poolname; local
3381 * The poolname in the ioctl is not set, we get it from the TSD,
3387 poolname = tsd_get(zfs_allow_log_key);
3389 error = spa_open(poolname, &spa, FTAG);
3390 strfree(poolname);
3492 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3523 zfs_ioc_bookmark(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3573 zfs_ioc_destroy_bookmarks(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
6250 char *poolname = arg; local
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlinkprop.c1972 char *poolname; local
1985 poolname = malloc(sizeof (mrp.mrp_pool));
1986 if (poolname == NULL)
2012 (void) strlcpy(poolname, *prop_val, sizeof (mrp.mrp_pool));
2013 vdp->vd_val = (uintptr_t)poolname;
/illumos-gate/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c1140 uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype,
1164 (void) strlcpy(zone->zsz_pool, poolname, sizeof (zone->zsz_pool));
2046 char poolname[ZS_POOLNAME_MAX]; local
2067 (void) strlcpy(poolname, "pool_default", sizeof (poolname));
2068 (void) strlcpy(psetname, "pset_default", sizeof (poolname));
2090 (void) strlcpy(poolname, (char *)string, sizeof (poolname));
2138 (void) strlcpy(pool, poolname, poollen);
2404 char poolname[ZS_POOLNAME_MA local
1134 zsd_mark_zone_found(zsd_ctl_t *ctl, zsd_zone_t *zone, uint64_t cpu_shares, uint64_t cpu_cap, uint64_t ram_cap, uint64_t locked_cap, uint64_t vm_cap, uint64_t processes_cap, uint64_t processes, uint64_t lwps_cap, uint64_t lwps, uint64_t shm_cap, uint64_t shm, uint64_t shmids_cap, uint64_t shmids, uint64_t semids_cap, uint64_t semids, uint64_t msgids_cap, uint64_t msgids, uint64_t lofi_cap, uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype, uint_t iptype) argument
[all...]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac.c7654 * Given the poolname in mac_resource_props, find the cpupart
7659 * is returned. This avoids a 2nd lookup to set the poolname
7666 * is not available or poolname is blank
7783 * Look for links with the pool property set and the poolname
7861 char *poolname = NULL; local
7879 pool_get_name(pool, &poolname);
7880 (void) strlcpy(mpa->mpa_poolname, poolname,
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c4573 char poolname[MAXPATHLEN]; local
4580 error = zonecfg_get_pool(handle, poolname, sizeof (poolname));
4581 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) {
4613 pool = pool_get_pool(poolconf, poolname);
4622 if (pool_set_binding(poolname, P_ZONEID, zoneid) != PO_SUCCESS) {
4623 /* if bind fails, return poolname for the error msg */
4624 (void) strlcpy(pool_err, poolname, err_size);
4648 /* lookup the poolname in zonecfg */
4716 * Retrieve the specified pool's thread scheduling class. 'poolname' mus
4731 get_pool_sched_class(char *poolname, char *class, int clsize) argument
4780 char poolname[MAXPATHLEN]; local
[all...]

Completed in 181 milliseconds