Home
last modified time | relevance | path

Searched refs:poolname (Results 1 – 22 of 22) sorted by relevance

/titanic_41/usr/src/cmd/ipf/tools/
H A Dippool.c141 char *poolname = NULL, *s; local
179 poolname = optarg;
205 if (poolname == NULL) {
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 == NULL) {
288 strncpy(iph.iph_name, poolname, sizeof(iph.iph_name));
[all …]
H A Dippool_y.y55 static char poolname[FR_GROUPLEN]; variable
190 number: IPT_NUM '=' YY_NUMBER { snprintf(poolname, FR_GROUPLEN, "%u", $3);
191 $$ = poolname;
/titanic_41/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c211 char *poolname; in process_ids() local
269 if ((poolname = pool_get_binding(id)) == NULL) { in process_ids()
274 (void) printf("%ld\t%s\n", id, poolname); in process_ids()
275 free(poolname); in process_ids()
/titanic_41/usr/src/test/zfs-tests/tests/functional/xattr/
H A Dxattr_012_pos.ksh53 poolname=$1
54 psize=$($ZPOOL list -H -o allocated $poolname)
/titanic_41/usr/src/cmd/zpool/
H A Dzpool_main.c491 char *poolname; in zpool_do_add() local
525 poolname = argv[0]; in zpool_do_add()
530 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_add()
535 poolname); in zpool_do_add()
558 print_vdev_tree(zhp, poolname, poolnvroot, 0, B_FALSE); in zpool_do_add()
589 char *poolname; in zpool_do_remove() local
606 poolname = argv[0]; in zpool_do_remove()
608 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_remove()
648 char *poolname; in zpool_do_create() local
760 poolname = argv[0]; in zpool_do_create()
[all …]
/titanic_41/usr/src/cmd/zinject/
H A Dtranslate.c333 int level, zinject_record_t *record, char *poolname, char *dataset) in translate_record() argument
375 (void) strcpy(poolname, object); in translate_record()
415 (void) strcpy(poolname, dataset); in translate_record()
416 if ((slash = strchr(poolname, '/')) != NULL) in translate_record()
H A Dzinject.h58 int level, zinject_record_t *record, char *poolname, char *dataset);
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c1237 if (iarg->poolname != NULL) { in zpool_find_import_impl()
1243 strcmp(iarg->poolname, pname) == 0; in zpool_find_import_impl()
1321 char *poolname, uint64_t guid) in zpool_find_import_cached() argument
1333 verify(poolname == NULL || guid == 0); in zpool_find_import_cached()
1391 if (poolname != NULL && strcmp(poolname, name) != 0) in zpool_find_import_cached()
1433 if (import->poolname != NULL) { in name_or_guid_exists()
1438 if (strcmp(pool_name, import->poolname) == 0) in name_or_guid_exists()
1456 verify(import->poolname == NULL || import->guid == 0); in zpool_search_import()
1463 import->poolname, import->guid)); in zpool_search_import()
H A Dlibzfs_config.c349 check_restricted(const char *poolname) in check_restricted() argument
366 namelen = strlen(poolname); in check_restricted()
371 if (len == namelen && 0 == strncmp(cur, poolname, len)) { in check_restricted()
H A Dlibzfs_pool.c393 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument
508 if (strval[0] != '\0' && !bootfs_name_valid(poolname, in zpool_valid_proplist()
516 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) { in zpool_valid_proplist()
518 "could not open pool '%s'"), poolname); in zpool_valid_proplist()
3967 char poolname[ZFS_MAX_DATASET_NAME_LEN]; in zvol_check_dump_config() local
3996 (void) strncpy(poolname, volname, p - volname); in zvol_check_dump_config()
3997 poolname[p - volname] = '\0'; in zvol_check_dump_config()
4000 if ((zhp = zpool_open(hdl, poolname)) == NULL) { in zvol_check_dump_config()
4002 "could not open pool '%s'"), poolname); in zvol_check_dump_config()
4010 "could not obtain vdev configuration for '%s'"), poolname); in zvol_check_dump_config()
H A Dlibzfs.h362 char *poolname; /* name of a pool to find */ member
/titanic_41/usr/src/cmd/zevadm/
H A Dzevadm.c918 zev_mute_unmute_impl(int fd, char *poolname, int mute) in zev_mute_unmute_impl() argument
923 len = strlen(poolname); in zev_mute_unmute_impl()
925 fprintf(stderr, "invalid poolname: %s\n", poolname); in zev_mute_unmute_impl()
928 strcpy(pa.zev_poolname, poolname); in zev_mute_unmute_impl()
938 zev_mute_pool(int fd, char *poolname) in zev_mute_pool() argument
940 return zev_mute_unmute_impl(fd, poolname, 1); in zev_mute_pool()
944 zev_unmute_pool(int fd, char *poolname) in zev_unmute_pool() argument
946 return zev_mute_unmute_impl(fd, poolname, 0); in zev_unmute_pool()
/titanic_41/usr/src/cmd/halt/
H A Dhalt.c729 char *poolname = NULL; in get_zfs_bootfs_arg() local
778 if ((poolname = strtok(mntsp, "/")) == NULL) { in get_zfs_bootfs_arg()
783 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) { in get_zfs_bootfs_arg()
784 (void) fprintf(stderr, gettext("Cannot open %s\n"), poolname); in get_zfs_bootfs_arg()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c3366 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_snapshot() argument
3374 if ((error = zfs_check_userprops(poolname, props)) != 0) in zfs_ioc_snapshot()
3378 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS)) in zfs_ioc_snapshot()
3383 poollen = strlen(poolname); in zfs_ioc_snapshot()
3400 if (strncmp(name, poolname, poollen) != 0 || in zfs_ioc_snapshot()
3428 char *poolname; in zfs_ioc_log_history() local
3437 poolname = tsd_get(zfs_allow_log_key); in zfs_ioc_log_history()
3439 error = spa_open(poolname, &spa, FTAG); in zfs_ioc_log_history()
3440 strfree(poolname); in zfs_ioc_log_history()
3542 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_destroy_snaps() argument
[all …]
H A Dspa.c4103 char *poolname; in spa_tryimport() local
4108 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname)) in spa_tryimport()
4134 poolname) == 0); in spa_tryimport()
4165 "%s/%s", poolname, ++cp); in spa_tryimport()
/titanic_41/usr/src/uts/common/fs/zev/
H A Dzev.c410 zev_ioc_mute_pool(char *poolname) in zev_ioc_mute_pool() argument
416 if (!strcmp(pe->name, poolname)) { in zev_ioc_mute_pool()
426 (void) strncpy(pe->name, poolname, sizeof(pe->name)); in zev_ioc_mute_pool()
434 zev_ioc_unmute_pool(char *poolname) in zev_ioc_unmute_pool() argument
442 if (!strcmp(pe->name, poolname)) in zev_ioc_unmute_pool()
/titanic_41/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c1140 uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype, in zsd_mark_zone_found() argument
1164 (void) strlcpy(zone->zsz_pool, poolname, sizeof (zone->zsz_pool)); in zsd_mark_zone_found()
2046 char poolname[ZS_POOLNAME_MAX]; in zsd_get_zone_pool_pset() local
2067 (void) strlcpy(poolname, "pool_default", sizeof (poolname)); in zsd_get_zone_pool_pset()
2068 (void) strlcpy(psetname, "pset_default", sizeof (poolname)); in zsd_get_zone_pool_pset()
2090 (void) strlcpy(poolname, (char *)string, sizeof (poolname)); in zsd_get_zone_pool_pset()
2138 (void) strlcpy(pool, poolname, poollen); in zsd_get_zone_pool_pset()
2404 char poolname[ZS_POOLNAME_MAX]; in zsd_refresh_zones() local
2448 zsd_get_zone_pool_pset(ctl, zone, poolname, sizeof (poolname), in zsd_refresh_zones()
2461 semids, msgids_cap, msgids, lofi_cap, lofi, poolname, in zsd_refresh_zones()
/titanic_41/usr/src/cmd/zoneadm/
H A Dzoneadm.c2134 char poolname[MAXPATHLEN]; in verify_pool() local
2143 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in verify_pool()
2144 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in verify_pool()
2160 "zone will not be bound to pool '%s'."), poolname); in verify_pool()
2181 pool = pool_get_pool(poolconf, poolname); in verify_pool()
2186 "using default pool"), poolname); in verify_pool()
5344 char poolname[MAXPATHLEN]; in pool_configured() local
5347 err2 = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in pool_configured()
5350 (err2 == Z_NO_ENTRY || (err2 == Z_OK && strlen(poolname) == 0))) in pool_configured()
/titanic_41/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c4412 char poolname[MAXPATHLEN]; in zonecfg_bind_pool() local
4419 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in zonecfg_bind_pool()
4420 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in zonecfg_bind_pool()
4452 pool = pool_get_pool(poolconf, poolname); in zonecfg_bind_pool()
4461 if (pool_set_binding(poolname, P_ZONEID, zoneid) != PO_SUCCESS) { in zonecfg_bind_pool()
4463 (void) strlcpy(pool_err, poolname, err_size); in zonecfg_bind_pool()
4570 get_pool_sched_class(char *poolname, char *class, int clsize) in get_pool_sched_class() argument
4591 if ((pool = pool_get_pool(poolconf, poolname)) == NULL) { in get_pool_sched_class()
4619 char poolname[MAXPATHLEN]; in zonecfg_get_dflt_sched_class() local
4621 if (zonecfg_get_pool(handle, poolname, sizeof (poolname)) == Z_OK) { in zonecfg_get_dflt_sched_class()
[all …]
/titanic_41/usr/src/cmd/zhack/
H A Dzhack.c158 g_importargs.poolname = g_pool; in import_pool()
/titanic_41/usr/src/lib/libdladm/common/
H A Dlinkprop.c2022 char *poolname; in check_pool() local
2035 poolname = malloc(sizeof (mrp.mrp_pool)); in check_pool()
2036 if (poolname == NULL) in check_pool()
2062 (void) strlcpy(poolname, *prop_val, sizeof (mrp.mrp_pool)); in check_pool()
2063 vdp->vd_val = (uintptr_t)poolname; in check_pool()
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac.c7866 char *poolname = NULL; in mac_pool_event_cb() local
7884 pool_get_name(pool, &poolname); in mac_pool_event_cb()
7885 (void) strlcpy(mpa->mpa_poolname, poolname, in mac_pool_event_cb()