Lines Matching refs:info

1081 	struct spdk_nvmf_reservation_info info;
1113 memset(&info, 0, sizeof(info));
1114 rc = nvmf_ns_reservation_load(&g_ns, &info);
1116 SPDK_CU_ASSERT_FATAL(info.ptpl_activated == true);
1128 rc = nvmf_ns_reservation_load(&g_ns, &info);
1216 struct spdk_nvmf_reservation_info info;
1238 memset(&info, 0, sizeof(info));
1239 rc = nvmf_ns_reservation_load(&g_ns, &info);
1241 SPDK_CU_ASSERT_FATAL(info.ptpl_activated == true);
1252 memset(&info, 0, sizeof(info));
1253 rc = nvmf_ns_reservation_load(&g_ns, &info);
1255 SPDK_CU_ASSERT_FATAL(info.ptpl_activated == true);
1256 SPDK_CU_ASSERT_FATAL(info.rtype == SPDK_NVME_RESERVE_WRITE_EXCLUSIVE_REG_ONLY);
1257 SPDK_CU_ASSERT_FATAL(info.crkey == 0xa1);
1258 spdk_uuid_parse(&holder_uuid, info.holder_uuid);
1270 memset(&info, 0, sizeof(info));
1271 rc = nvmf_ns_reservation_load(&g_ns, &info);
1273 SPDK_CU_ASSERT_FATAL(info.rtype == 0);
1274 SPDK_CU_ASSERT_FATAL(info.crkey == 0);
1275 SPDK_CU_ASSERT_FATAL(info.ptpl_activated == true);
1965 struct spdk_nvmf_reservation_info info = {};
1974 info.ptpl_activated = true;
1975 info.num_regs = 2;
1976 info.rtype = SPDK_NVME_RESERVE_WRITE_EXCLUSIVE_ALL_REGS;
1977 info.registrants[0].rkey = 0xb;
1978 info.registrants[1].rkey = 0xc;
1980 /* Generate and prepare uuids, make sure bdev and info uuid are the same */
1983 snprintf(info.holder_uuid, SPDK_UUID_STRING_LEN, "%s", uuid);
1984 snprintf(info.bdev_uuid, SPDK_UUID_STRING_LEN, "%s", uuid);
1985 snprintf(info.registrants[0].host_uuid, SPDK_UUID_STRING_LEN, "%s", uuid);
1989 snprintf(info.registrants[1].host_uuid, SPDK_UUID_STRING_LEN, "%s", uuid);
1991 /* info->rkey not exist in registrants */
1992 info.crkey = 0xa;
1994 rc = nvmf_ns_reservation_restore(&ns, &info);
1997 /* info->rkey exists in registrants */
1998 info.crkey = 0xb;
2000 rc = nvmf_ns_reservation_restore(&ns, &info);
2019 snprintf(info.bdev_uuid, SPDK_UUID_STRING_LEN, "%s", uuid);
2023 rc = nvmf_ns_reservation_restore(&ns, &info);
2027 spdk_uuid_fmt_lower(info.bdev_uuid, sizeof(info.bdev_uuid), &bdev.uuid);
2028 info.rtype = 0;
2029 info.crkey = 0;
2030 memset(info.holder_uuid, 0, SPDK_UUID_STRING_LEN);
2032 rc = nvmf_ns_reservation_restore(&ns, &info);
2125 ut_update_reservation(const struct spdk_nvmf_ns *ns, const struct spdk_nvmf_reservation_info *info)
2127 g_resv_info = *info;
2133 ut_load_reservation(const struct spdk_nvmf_ns *ns, struct spdk_nvmf_reservation_info *info)
2135 *info = g_resv_info;