Home
last modified time | relevance | path

Searched refs:strval (Results 1 – 11 of 11) sorted by relevance

/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_disk_event.c63 char *strval; in zed_udev_event() local
69 if (nvlist_lookup_string(nvl, DEV_NAME, &strval) == 0) in zed_udev_event()
70 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_NAME, strval); in zed_udev_event()
71 if (nvlist_lookup_string(nvl, DEV_PATH, &strval) == 0) in zed_udev_event()
72 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_PATH, strval); in zed_udev_event()
76 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_PHYS_PATH, strval); in zed_udev_event()
105 char strval[128]; in dev_event_nvlist() local
112 if (zfs_device_get_devid(dev, strval, sizeof (strval)) == 0) in dev_event_nvlist()
113 (void) nvlist_add_string(nvl, DEV_IDENTIFIER, strval); in dev_event_nvlist()
114 if (zfs_device_get_physical(dev, strval, sizeof (strval)) == 0) in dev_event_nvlist()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dzcp_get.c254 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop()
299 error = dsl_get_prev_snap(ds, strval); in get_special_prop()
302 dsl_dataset_name(ds, strval); in get_special_prop()
350 if (strcmp(strval, "") == 0) { in get_special_prop()
354 if (strcmp(strval, "") == 0) in get_special_prop()
418 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop()
428 (void) lua_pushstring(state, strval); in get_special_prop()
435 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop()
442 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop()
469 (void) lua_pushstring(state, strval); in get_zap_prop()
[all …]
H A Dspa.c278 if (strval != NULL) in spa_prop_add_list()
445 char *strval = NULL; in spa_prop_get() local
469 dsl_dataset_name(ds, strval); in spa_prop_get()
472 strval = NULL; in spa_prop_get()
478 if (strval != NULL) in spa_prop_get()
626 if (strval == NULL || strval[0] == '\0') { in spa_prop_validate()
671 if (strval[0] == '\0') in spa_prop_validate()
677 if (strval[0] != '/') { in spa_prop_validate()
682 slash = strrchr(strval, '/'); in spa_prop_validate()
8591 char *strval, *fname; local
[all …]
H A Dzfs_ioctl.c524 if (strcasecmp(strval, ZFS_MLSLABEL_DEFAULT) == 0) in zfs_set_slabel_policy()
551 if (zfs_check_global_label(name, strval) != 0) in zfs_set_slabel_policy()
581 if (hexstr_to_label(strval, &new_sl) != 0) in zfs_set_slabel_policy()
607 char *strval; in zfs_secpolicy_setprop() local
646 if (nvpair_value_string(propval, &strval) == 0) { in zfs_secpolicy_setprop()
649 err = zfs_set_slabel_policy(dsname, strval, CRED()); in zfs_secpolicy_setprop()
2416 const char *strval = NULL; in zfs_prop_set_special() local
2434 strval = fnvpair_value_string(pair); in zfs_prop_set_special()
2542 const char *strval; in zfs_set_prop_nvlist() local
2667 strval = fnvpair_value_string(propval); in zfs_set_prop_nvlist()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c1011 char *strval; in zfs_valid_proplist() local
1107 strval, &intval) != 0) { in zfs_valid_proplist()
1306 if (strcmp(strval, hex) == 0) { in zfs_valid_proplist()
1426 strcmp(strval, "on") != 0 && in zfs_valid_proplist()
1427 strcmp(strval, "off") != 0) { in zfs_valid_proplist()
2537 const char *strval) in zcp_check() argument
2611 const char *strval; in zfs_prop_get() local
2961 zcp_check(zhp, prop, 0, strval); in zfs_prop_get()
4618 char *strval; in zfs_expand_proplist() local
5497 char *strval; in zvol_volsize_to_reservation() local
[all …]
H A Dlibzfs_pool.c284 const char *strval; in zpool_get_prop() local
414 (void) strlcpy(buf, strval, len); in zpool_get_prop()
460 char *strval; in zpool_valid_proplist() local
549 &strval, &intval, errbuf) != 0) in zpool_valid_proplist()
626 if (strval[0] != '/') { in zpool_valid_proplist()
635 if (strval[0] == '\0') in zpool_valid_proplist()
638 if (strcmp(strval, "none") == 0) in zpool_valid_proplist()
641 if (strval[0] != '/') { in zpool_valid_proplist()
649 slash = strrchr(strval, '/'); in zpool_valid_proplist()
661 if (strval[0] != '\0' && in zpool_valid_proplist()
[all …]
H A Dlibzfs_crypto.c755 char *strval; in proplist_has_encryption_props() local
763 zfs_prop_to_name(ZFS_PROP_KEYLOCATION), &strval); in proplist_has_encryption_props()
764 if (ret == 0 && strcmp(strval, "none") != 0) in proplist_has_encryption_props()
/f-stack/freebsd/contrib/openzfs/cmd/zed/agents/
H A Dfmd_api.c352 char *strval; in zed_log_fault() local
360 if (nvlist_lookup_string(nvl, FM_CLASS, &strval) == 0) in zed_log_fault()
361 zed_log_msg(LOG_INFO, "\t%s: %s", FM_CLASS, strval); in zed_log_fault()
367 if (nvlist_lookup_string(rsrc, FM_FMRI_SCHEME, &strval) == 0) in zed_log_fault()
369 strval); in zed_log_fault()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal.c559 eal_parse_socket_arg(char *strval, volatile uint64_t *socket_arg) in eal_parse_socket_arg() argument
566 len = strnlen(strval, SOCKET_MEM_STRLEN); in eal_parse_socket_arg()
573 if (!isdigit(strval[len-1])) in eal_parse_socket_arg()
577 arg_num = rte_strsplit(strval, len, in eal_parse_socket_arg()
/f-stack/freebsd/contrib/openzfs/cmd/zfs/
H A Dzfs_main.c1039 char *strval; in zfs_do_create() local
1167 free(strval); in zfs_do_create()
1894 char *strval; in get_callback() local
1962 strval = "-"; in get_callback()
3038 char *strval = "-"; in print_us_node() local
3072 strval = valstr; in print_us_node()
3081 strval = valstr; in print_us_node()
3084 strval = "none"; in print_us_node()
3088 strval = valstr; in print_us_node()
3098 strval = valstr; in print_us_node()
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c772 char *strval; in add_prop_list() local
828 if (nvlist_lookup_string(proplist, normnm, &strval) == 0 && in add_prop_list()
959 char strval[ZPOOL_MAXPROPLEN]; in zpool_do_add() local
963 (void) sprintf(strval, "%" PRId32, intval); in zpool_do_add()
964 verify(add_prop_list(ZPOOL_CONFIG_ASHIFT, strval, in zpool_do_add()
6338 char strval[ZPOOL_MAXPROPLEN]; in zpool_do_attach_or_replace() local
6342 (void) sprintf(strval, "%" PRId32, intval); in zpool_do_attach_or_replace()
6343 verify(add_prop_list(ZPOOL_CONFIG_ASHIFT, strval, in zpool_do_attach_or_replace()