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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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)
 				exit(EINVAL);
 			}
 			if (!path && dev_type != TYPE_MMC
+			    && dev_type != TYPE_TAPE
 			    && dev_type != TYPE_DISK) {
 				eprintf("'backing-store' option "
 						"is necessary\n");
-- 
1.7.3.1

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


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux