From a6059a1cba3b2a8fac31279e279b4a16fc8c6dea Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 15 Nov 2023 18:20:28 +0100 Subject: [PATCH] Add generated manpage --- cpp/Makefile | 2 +- doc/scsiexec_man_page.txt | 48 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 doc/scsiexec_man_page.txt diff --git a/cpp/Makefile b/cpp/Makefile index 40f017c4..4e7778ab 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -210,7 +210,7 @@ lcov: test lcov -q -c -d . --include '*/cpp/*' -o $(COVERAGE_FILE) --exclude '*/test/*' --exclude '*/interfaces/*' --exclude '*/piscsi_interface.pb*' genhtml -q -o $(COVERAGE_DIR) --legend $(COVERAGE_FILE) -docs: $(DOC_DIR)/piscsi_man_page.txt $(DOC_DIR)/scsictl_man_page.txt $(DOC_DIR)/scsimon_man_page.txt $(DOC_DIR)/scsidump_man_page.txt $(DOC_DIR)/scsiloop_man_page.txt +docs: $(DOC_DIR)/piscsi_man_page.txt $(DOC_DIR)/scsictl_man_page.txt $(DOC_DIR)/scsimon_man_page.txt $(DOC_DIR)/scsidump_man_page.txt $(DOC_DIR)/scsiexec_man_page.txt $(DOC_DIR)/scsiloop_man_page.txt $(SRC_PISCSI_CORE) $(SRC_SCSICTL_CORE) $(SRC_SCSIEXEC): $(OBJ_GENERATED) diff --git a/doc/scsiexec_man_page.txt b/doc/scsiexec_man_page.txt new file mode 100644 index 00000000..49837640 --- /dev/null +++ b/doc/scsiexec_man_page.txt @@ -0,0 +1,48 @@ +!! ------ THIS FILE IS AUTO_GENERATED! DO NOT MANUALLY UPDATE!!! +!! ------ The native file is scsiexec.1. Re-run 'make docs' after updating\n\n +scsidump(1) General Commands Manual scsidump(1) + +NAME + scsidump - SCSI action execution tool for PiSCSI + +SYNOPSIS + scsidump -t ID[:LUN] [-i BID] -f FILENAME [-b] [-tR] ID[:LUN] [-L + LOG_LEVEL] + +DESCRIPTION + scsiexec wraps JSON or binary input data in protobuf format into a cus‐ + tom PiSCSI SCSI command, has piscsi execute it and display the results + in JSON format. The input data must be legal commands for the PiSCSi + protobuf interface. See the file piscsi_interface.proto for details. + scsiexec helps with advanced testing. It requires two connected PiSCSI + boards. + +NOTES + scsidump requires either a direct connection (one without transceivers) + or a FULLSPEC PiSCSI/RaSCSI board. + +OPTIONS + -t ID[:LUN] + SCSI ID and optional LUN of the remote SCSI device. The remote + SCSI device will be functioning as the "Target" device. + + -i BID SCSI ID of the PiSCSI device. If not specified, the PiSCSI de‐ + vice will use ID 7. The PiSCSI host will be functioning as the + "Initiator" device. + + -f FILE + Path to the input file with JSON or binary protobuf data. + + -b Signals that the inout file is a binary file and not a JSON + file. + + -L LOG_LEVEL + The scsiexec log level (trace, debug, info, warning, error, + off). The default log level is 'info'. + +SEE ALSO + scsictl(1), piscsi(1), scsidump(1), scsimon(1) + + Full documentation is available at: + + scsidump(1)