Home
last modified time | relevance | path

Searched refs:has_prefix (Results 1 – 5 of 5) sorted by relevance

/spdk/test/unit/lib/util/string.c/
H A Dstring_ut.c118 bool has_prefix = true; in test_parse_capacity() local
120 rc = spdk_parse_capacity("472", &cap, &has_prefix); in test_parse_capacity()
123 CU_ASSERT(has_prefix == false); in test_parse_capacity()
126 rc = spdk_parse_capacity(str, &cap, &has_prefix); in test_parse_capacity()
129 CU_ASSERT(has_prefix == false); in test_parse_capacity()
131 rc = spdk_parse_capacity("12k", &cap, &has_prefix); in test_parse_capacity()
134 CU_ASSERT(has_prefix == true); in test_parse_capacity()
136 rc = spdk_parse_capacity("12K", &cap, &has_prefix); in test_parse_capacity()
139 CU_ASSERT(has_prefix == true); in test_parse_capacity()
141 rc = spdk_parse_capacity("12KB", &cap, &has_prefix); in test_parse_capacity()
[all …]
/spdk/test/blobfs/mkfs/
H A Dmkfs.c47 bool has_prefix; in mkfs_parse_arg() local
51 spdk_parse_capacity(arg, &g_cluster_size, &has_prefix); in mkfs_parse_arg()
/spdk/lib/util/
H A Dstring.c335 spdk_parse_capacity(const char *cap_str, uint64_t *cap, bool *has_prefix) in spdk_parse_capacity() argument
342 if (has_prefix != NULL) { in spdk_parse_capacity()
343 *has_prefix = false; in spdk_parse_capacity()
356 if (has_prefix != NULL) { in spdk_parse_capacity()
357 *has_prefix = true; in spdk_parse_capacity()
/spdk/module/blobfs/bdev/
H A Dblobfs_bdev_rpc.c156 bool has_prefix; in rpc_decode_cluster_sz() local
165 rc = spdk_parse_capacity(sz_str, cluster_sz, &has_prefix); in rpc_decode_cluster_sz()
/spdk/include/spdk/
H A Dstring.h202 int spdk_parse_capacity(const char *cap_str, uint64_t *cap, bool *has_prefix);