Lines Matching +full:key +full:- +full:release
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
83 "Current Reservation Key"),
85 "Preempt Reservation Key"),
94 { arg_string, &acquire_opt.dev, "namespace-id" },
127 "Current Reservation Key"),
129 "New Reservation Key"),
133 "Ignore Existing Key"),
140 { arg_string, ®ister_opt.dev, "namespace-id" },
169 "Current Reservation Key"),
173 "Release Action (0=release, 1=clear)"),
178 { arg_string, &release_opt.dev, "namespace-id" },
183 .name = "release",
185 .descr = "Release/clear reservation",
216 { arg_string, &report_opt.dev, "namespace-id" },
246 fprintf(stderr, "This command require namespace-id\n"); in resvacquire()
285 fprintf(stderr, "This command require namespace-id\n"); in resvregister()
324 fprintf(stderr, "This command require namespace-id\n"); in resvrelease()
340 err(EX_IOERR, "release request failed"); in resvrelease()
343 errx(EX_IOERR, "release request returned error"); in resvrelease()
365 fprintf(stderr, "This command require namespace-id\n"); in resvreport()
373 pt.cmd.cdw10 = htole32(sizeof(data) / 4 - 1); in resvreport()
395 for (; i > 64; i--) { in resvreport()
396 if (data[i - 1] != 0) in resvreport()
405 n = (s->regctl[1] << 8) | s->regctl[0]; in resvreport()
406 printf("Generation: %u\n", s->gen); in resvreport()
407 printf("Reservation Type: %u\n", s->rtype); in resvreport()
409 printf("Persist Through Power Loss State: %u\n", s->ptpls); in resvreport()
412 n = MIN(n, (sizeof(data) - sizeof(e)) / sizeof(e->ctrlr[0])); in resvreport()
415 e->ctrlr[i].ctrlr_id); in resvreport()
417 e->ctrlr[i].rcsts); in resvreport()
418 printf(" Reservation Key: 0x%08jx\n", in resvreport()
419 e->ctrlr[i].rkey); in resvreport()
421 e->ctrlr[i].hostid[0], e->ctrlr[i].hostid[1]); in resvreport()
424 n = MIN(n, (sizeof(data) - sizeof(s)) / sizeof(s->ctrlr[0])); in resvreport()
427 s->ctrlr[i].ctrlr_id); in resvreport()
429 s->ctrlr[i].rcsts); in resvreport()
431 s->ctrlr[i].hostid); in resvreport()
432 printf(" Reservation Key: 0x%08jx\n", in resvreport()
433 s->ctrlr[i].rkey); in resvreport()