2010-03-26 00:54:28 +01:00
|
|
|
Index: src/mt.c
|
|
|
|
===================================================================
|
|
|
|
--- src/mt.c.orig
|
2008-08-04 12:30:39 +02:00
|
|
|
+++ src/mt.c
|
2010-03-26 00:54:28 +01:00
|
|
|
@@ -413,11 +413,18 @@ parse_opt (int key, char *arg, struct ar
|
|
|
|
{
|
|
|
|
tapedev = getenv ("TAPE");
|
|
|
|
if (tapedev == NULL)
|
2008-08-04 12:30:39 +02:00
|
|
|
-#ifdef DEFTAPE /* From sys/mtio.h. */
|
2010-03-26 00:54:28 +01:00
|
|
|
- tapedev = DEFTAPE;
|
2008-08-04 12:30:39 +02:00
|
|
|
-#else
|
2010-03-26 00:54:28 +01:00
|
|
|
- error (MT_EXIT_INVOP, 0, _("no tape device specified"));
|
|
|
|
-#endif
|
|
|
|
+
|
2008-08-04 12:30:39 +02:00
|
|
|
+/* Suse doesn't have /dev/tape as link to /dev/nst0 any more.
|
|
|
|
+Instead it uses udev and creates different names in /dev/tape/by-id/ directory.
|
|
|
|
+If it is SCSI tape storage then it creates /dev/tape/by-id/scsi--nst
|
|
|
|
+If it is USB device then it creates something not predictibable:
|
|
|
|
+/dev/tape/by-id/scsi-*HP_blabla*{VENDOR_SPECIFIC}*-nst
|
|
|
|
+So let's use old behave which was /dev/nst0.
|
|
|
|
+bnc#355241
|
|
|
|
+*/
|
|
|
|
+/* #ifdef DEFTAPE * From sys/mtio.h. * */
|
|
|
|
+# define DEFSUSETAPE "/dev/nst0"
|
|
|
|
+ tapedev = DEFSUSETAPE;
|
2010-03-26 00:54:28 +01:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|