Home
last modified time | relevance | path

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

/titanic_50/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_50/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_50/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_50/usr/src/cmd/zpool/
H A Dzpool_main.c493 char *poolname; in zpool_do_add() local
527 poolname = argv[0]; in zpool_do_add()
532 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_add()
537 poolname); in zpool_do_add()
560 print_vdev_tree(zhp, poolname, poolnvroot, 0, B_FALSE); in zpool_do_add()
591 char *poolname; in zpool_do_remove() local
608 poolname = argv[0]; in zpool_do_remove()
610 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_remove()
650 char *poolname; in zpool_do_create() local
762 poolname = argv[0]; in zpool_do_create()
[all …]
/titanic_50/usr/src/lib/libzfs/common/
H A Dlibzfs_config.c352 zpool_skip_pool(const char *poolname) in zpool_skip_pool() argument
360 int namelen = strlen(poolname); in zpool_skip_pool()
373 if (len == namelen && 0 == strncmp(cur, poolname, len)) in zpool_skip_pool()
387 if (len == namelen && 0 == strncmp(cur, poolname, len)) { in zpool_skip_pool()
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()
1320 char *poolname, uint64_t guid) in zpool_find_import_cached() argument
1332 verify(poolname == NULL || guid == 0); in zpool_find_import_cached()
1390 if (poolname != NULL && strcmp(poolname, name) != 0) in zpool_find_import_cached()
1432 if (import->poolname != NULL) { in name_or_guid_exists()
1437 if (strcmp(pool_name, import->poolname) == 0) in name_or_guid_exists()
1455 verify(import->poolname == NULL || import->guid == 0); in zpool_search_import()
1462 import->poolname, import->guid)); in zpool_search_import()
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()
3976 char poolname[ZFS_MAX_DATASET_NAME_LEN]; in zvol_check_dump_config() local
4005 (void) strncpy(poolname, volname, p - volname); in zvol_check_dump_config()
4006 poolname[p - volname] = '\0'; in zvol_check_dump_config()
4009 if ((zhp = zpool_open(hdl, poolname)) == NULL) { in zvol_check_dump_config()
4011 "could not open pool '%s'"), poolname); in zvol_check_dump_config()
4019 "could not obtain vdev configuration for '%s'"), poolname); in zvol_check_dump_config()
H A Dlibzfs.h364 char *poolname; /* name of a pool to find */ member
/titanic_50/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_50/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_50/usr/src/cmd/halt/
H A Dhalt.c742 char *poolname = NULL; in get_zfs_bootfs_arg() local
791 if ((poolname = strtok(mntsp, "/")) == NULL) { in get_zfs_bootfs_arg()
796 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) { in get_zfs_bootfs_arg()
797 (void) fprintf(stderr, gettext("Cannot open %s\n"), poolname); in get_zfs_bootfs_arg()
/titanic_50/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c3368 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_snapshot() argument
3376 if ((error = zfs_check_userprops(poolname, props)) != 0) in zfs_ioc_snapshot()
3380 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS)) in zfs_ioc_snapshot()
3385 poollen = strlen(poolname); in zfs_ioc_snapshot()
3402 if (strncmp(name, poolname, poollen) != 0 || in zfs_ioc_snapshot()
3430 char *poolname; in zfs_ioc_log_history() local
3439 poolname = tsd_get(zfs_allow_log_key); in zfs_ioc_log_history()
3441 error = spa_open(poolname, &spa, FTAG); in zfs_ioc_log_history()
3442 strfree(poolname); in zfs_ioc_log_history()
3544 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_destroy_snaps() argument
[all …]
H A Dspa.c4128 char *poolname; in spa_tryimport() local
4133 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname)) in spa_tryimport()
4159 poolname) == 0); in spa_tryimport()
4190 "%s/%s", poolname, ++cp); in spa_tryimport()
/titanic_50/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_50/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_50/usr/src/cmd/zoneadm/
H A Dzoneadm.c2135 char poolname[MAXPATHLEN]; in verify_pool() local
2144 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in verify_pool()
2145 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in verify_pool()
2161 "zone will not be bound to pool '%s'."), poolname); in verify_pool()
2182 pool = pool_get_pool(poolconf, poolname); in verify_pool()
2187 "using default pool"), poolname); in verify_pool()
5346 char poolname[MAXPATHLEN]; in pool_configured() local
5349 err2 = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in pool_configured()
5352 (err2 == Z_NO_ENTRY || (err2 == Z_OK && strlen(poolname) == 0))) in pool_configured()
/titanic_50/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c4413 char poolname[MAXPATHLEN]; in zonecfg_bind_pool() local
4420 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in zonecfg_bind_pool()
4421 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in zonecfg_bind_pool()
4453 pool = pool_get_pool(poolconf, poolname); in zonecfg_bind_pool()
4462 if (pool_set_binding(poolname, P_ZONEID, zoneid) != PO_SUCCESS) { in zonecfg_bind_pool()
4464 (void) strlcpy(pool_err, poolname, err_size); in zonecfg_bind_pool()
4571 get_pool_sched_class(char *poolname, char *class, int clsize) in get_pool_sched_class() argument
4592 if ((pool = pool_get_pool(poolconf, poolname)) == NULL) { in get_pool_sched_class()
4620 char poolname[MAXPATHLEN]; in zonecfg_get_dflt_sched_class() local
4622 if (zonecfg_get_pool(handle, poolname, sizeof (poolname)) == Z_OK) { in zonecfg_get_dflt_sched_class()
[all …]
/titanic_50/usr/src/cmd/zhack/
H A Dzhack.c158 g_importargs.poolname = g_pool; in import_pool()
/titanic_50/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_50/usr/src/uts/common/io/mac/
H A Dmac.c7861 char *poolname = NULL; in mac_pool_event_cb() local
7879 pool_get_name(pool, &poolname); in mac_pool_event_cb()
7880 (void) strlcpy(mpa->mpa_poolname, poolname, in mac_pool_event_cb()