[stgt] [PATCH] TGTADM: allow creating tape drives that do not, yet, have any medium loaded

Ronnie Sahlberg ronniesahlberg at gmail.com
Thu Aug 9 08:48:51 CEST 2012

Allow creating a tape device that does not have a backing store file.
The backing store file can be loaded/mounted at a later time just like we allow for SBC and MMC.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
 usr/tgtadm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index e13ab41..2208215 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -798,6 +798,7 @@ int main(int argc, char **argv)
 			if (!path && dev_type != TYPE_MMC
+			    && dev_type != TYPE_TAPE
 			    && dev_type != TYPE_DISK) {
 				eprintf("'backing-store' option "
 						"is necessary\n");

To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

More information about the stgt mailing list