Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Factory:LegacyX86
cpio
cpio-default_tape_dev.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cpio-default_tape_dev.patch of Package cpio
Index: src/mt.c =================================================================== --- src/mt.c.orig +++ src/mt.c @@ -224,11 +224,18 @@ parse_opt (int key, char *arg, struct ar { tapedev = getenv ("TAPE"); if (tapedev == NULL) -#ifdef DEFTAPE /* From sys/mtio.h. */ - tapedev = DEFTAPE; -#else - error (MT_EXIT_INVOP, 0, _("no tape device specified")); -#endif + +/* 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; } break;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor