Lines Matching refs:nsid

195 	uint32_t	nsid;
198 .nsid = NONE - 1,
203 OPT("namespace-id", 'n', arg_uint32, delete_opt, nsid,
225 uint32_t nsid;
229 .nsid = NONE,
235 OPT("namespace-id", 'n', arg_uint32, attach_opt, nsid,
259 uint32_t nsid;
262 .nsid = NONE,
267 OPT("namespace-id", 'n', arg_uint32, attached_opt, nsid,
289 uint32_t nsid;
293 .nsid = NONE,
299 OPT("namespace-id", 'n', arg_uint32, detach_opt, nsid,
326 uint32_t nsid;
331 .nsid = NONE,
339 OPT("nsid", 'n', arg_uint32, identify_opt, nsid,
403 uint32_t nsid;
409 get_nsid(fd, &path, &nsid);
410 if (nsid != 0) {
424 pt.cmd.nsid = htole32(0);
448 uint32_t nsid;
454 get_nsid(fd, &path, &nsid);
455 if (nsid != 0) {
469 pt.cmd.nsid = htole32(0);
493 uint32_t nsid;
499 get_nsid(fd, &path, &nsid);
500 if (nsid != 0) {
546 uint32_t nsid;
560 get_nsid(fd, &path, &nsid);
561 if (nsid != 0) {
636 uint32_t nsid;
643 get_nsid(fd, &path, &nsid);
644 if (nsid != 0) {
647 } else if (delete_opt.nsid == NONE - 1) {
652 if (delete_opt.nsid != NONE - 1)
653 nsid = delete_opt.nsid;
668 pt.cmd.nsid = nsid;
677 printf("namespace %d deleted\n", nsid);
703 uint32_t nsid;
709 get_nsid(fd, &path, &nsid);
710 if (nsid != 0) {
713 } else if (attach_opt.nsid == NONE) {
718 if (attach_opt.nsid != NONE)
719 nsid = attach_opt.nsid;
751 pt.cmd.nsid = nsid;
762 printf("namespace %d attached\n", nsid);
773 uint32_t nsid;
779 get_nsid(fd, &path, &nsid);
780 if (nsid != 0) {
783 } else if (detach_opt.nsid == NONE) {
788 if (detach_opt.nsid != NONE)
789 nsid = detach_opt.nsid;
801 pt.cmd.nsid = htole32(nsid);
828 pt.cmd.nsid = nsid;
839 printf("namespace %d detached\n", nsid);
850 uint32_t nsid;
856 get_nsid(fd, &path, &nsid);
857 if (nsid != 0) {
860 } else if (attached_opt.nsid == NONE) {
865 if (attached_opt.nsid != NONE)
866 nsid = attached_opt.nsid;
876 pt.cmd.nsid = htole32(nsid);
903 uint32_t nsid;
909 get_nsid(fd, &path, &nsid);
910 if (nsid != 0) {
913 } else if (identify_opt.nsid == NONE) {
918 if (identify_opt.nsid != NONE)
919 nsid = identify_opt.nsid;
929 pt.cmd.nsid = htole32(nsid);
949 errx(EX_UNAVAILABLE, "namespace %d is not allocated", nsid);