iscsi-pr uses libiscsi to connect target and issues PR command.
In most cases, iscsi-pr use the same parameters as sg_persist(from sg3-utils).
For example, use iscsi-pr to dump keys by command:
~# ./utils/iscsi-pr --read-keys iscsi://192.168.122.44/iqn.2003-01.org.linux-iscsi.bytedance.x8664:sn.a6b7bff3d509/0 -i iqn.2005-03.org.open-iscsi:12345678
PR generation=0x20, 19 registered reservation keys follow:
0xabcd1234
0xabcd
0xabcd
0xabc
A few command is not implemented in this patch, add them if necessary
in future.
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
10 lines
269 B
Makefile
10 lines
269 B
Makefile
AM_CPPFLAGS = -I${srcdir}/../include -I${srcdir}/../win32
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
AM_LDFLAGS = -no-undefined
|
|
LIBS = ../lib/libiscsi.la
|
|
|
|
bin_PROGRAMS = iscsi-inq iscsi-ls iscsi-swp iscsi-pr
|
|
if !TARGET_OS_IS_WIN32
|
|
bin_PROGRAMS += iscsi-perf iscsi-readcapacity16
|
|
endif
|