This commit is contained in:
parent
54d32ffaec
commit
73eb62cd08
27
cpio-2.9-default_tape_dev.patch
Normal file
27
cpio-2.9-default_tape_dev.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
--- src/mt.c
|
||||||
|
+++ src/mt.c
|
||||||
|
@@ -664,11 +664,20 @@
|
||||||
|
{
|
||||||
|
tapedev = getenv ("TAPE");
|
||||||
|
if (tapedev == NULL)
|
||||||
|
-#ifdef DEFTAPE /* From sys/mtio.h. */
|
||||||
|
- tapedev = DEFTAPE;
|
||||||
|
-#else
|
||||||
|
+/* 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;
|
||||||
|
+/* #else
|
||||||
|
error (1, 0, _("no tape device specified"));
|
||||||
|
-#endif
|
||||||
|
+#endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef MTDENS
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 4 12:02:01 CEST 2008 - lmichnovic@suse.cz
|
||||||
|
|
||||||
|
- changed default tape device for 'mt' command to /dev/nst0
|
||||||
|
/dev/tape is not symlink any more but directory handled by udev
|
||||||
|
(*default_tape_dev.patch) [bnc#355241]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 1 18:16:00 CEST 2008 - cthiel@suse.de
|
Fri Aug 1 18:16:00 CEST 2008 - cthiel@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ License: GPL v3 only
|
|||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 2.9
|
Version: 2.9
|
||||||
Release: 73
|
Release: 75
|
||||||
Summary: A Backup and Archiving Utility
|
Summary: A Backup and Archiving Utility
|
||||||
Source: cpio-2.9.tar.bz2
|
Source: cpio-2.9.tar.bz2
|
||||||
Patch1: cpio-2.9-no_rmt.patch
|
Patch1: cpio-2.9-no_rmt.patch
|
||||||
@ -40,6 +40,7 @@ Patch16: cpio-2.9-gnulib.patch
|
|||||||
# make posibble to have device nodes with major number > 127
|
# make posibble to have device nodes with major number > 127
|
||||||
# Red Hat Bugzilla #450109
|
# Red Hat Bugzilla #450109
|
||||||
Patch17: cpio-2.9-dev_number.patch
|
Patch17: cpio-2.9-dev_number.patch
|
||||||
|
Patch18: cpio-2.9-default_tape_dev.patch
|
||||||
PreReq: %install_info_prereq
|
PreReq: %install_info_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: %{name}-lang = %{version}
|
Requires: %{name}-lang = %{version}
|
||||||
@ -83,6 +84,7 @@ Authors:
|
|||||||
%patch15
|
%patch15
|
||||||
%patch16
|
%patch16
|
||||||
%patch17
|
%patch17
|
||||||
|
%patch18
|
||||||
chmod 755 .
|
chmod 755 .
|
||||||
chmod u+w *
|
chmod u+w *
|
||||||
chmod a+r *
|
chmod a+r *
|
||||||
@ -127,6 +129,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 04 2008 lmichnovic@suse.cz
|
||||||
|
- changed default tape device for 'mt' command to /dev/nst0
|
||||||
|
/dev/tape is not symlink any more but directory handled by udev
|
||||||
|
(*default_tape_dev.patch) [bnc#355241]
|
||||||
* Fri Aug 01 2008 cthiel@suse.de
|
* Fri Aug 01 2008 cthiel@suse.de
|
||||||
- specfile cleanup
|
- specfile cleanup
|
||||||
* Fri Jul 18 2008 lmichnovic@suse.cz
|
* Fri Jul 18 2008 lmichnovic@suse.cz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user