Add iscsi-readcapacity16 binary

This patch adds a small binary to read the size of an iscsi target. The value
is returned on stdout.
This commit is contained in:
Peter Lieven
2012-10-23 15:59:28 +02:00
parent 56b1e27980
commit fec061ac68
3 changed files with 169 additions and 2 deletions

View File

@@ -963,7 +963,7 @@ iscsi_scsi_cancel_all_tasks(struct iscsi_context *iscsi);
do { \
if ((iscsi)->debug >= level) { \
fprintf(stderr,"libiscsi: "); \
fprintf(stderr, (fmt), ##args); \
fprintf(stderr, (fmt), ##args); \
if (iscsi->target_name) { \
fprintf(stderr," [%s]",iscsi->target_name); \
} \