[Bug 223494] New: mt compression handling a bit broken
https://bugzilla.novell.com/show_bug.cgi?id=223494 Summary: mt compression handling a bit broken Product: openSUSE 10.3 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: lmichnovic@novell.com ReportedBy: meissner@novell.com QAContact: qa@suse.de CC: hel@head.de reporter reported that "mt compression" did not work or only worked occasionaly. This seems to be a local patch from us. Here is the last mail with potential fix: Ciao, Marcus Date: Thu, 23 Nov 2006 17:28:28 +0100 From: Heiko Helmle <heiko.helmle@head.de> User-Agent: Thunderbird 1.5.0.8 (X11/20061025) To: Marcus Meissner <meissner@suse.de> Cc: suse-sles-e@suse.com Subject: Re: [suse-sles-e] is mt a bit broken on SLES10? [-- Anhang #1 --] [-- Typ: text/plain, Kodierung: 7bit, Größe: 0,4K --] Marcus Meissner wrote:
Hmm.
I can only suggest to add debugging output to mt.c:do_dat_compression()
I think the "mask" handling overwrites the cleared flag again, perhaps print out mask[4+2] there to see if the drives allows it.
You were right. I asked one of our C gurus here - he found two bugs in this little function, produced a patch and mt is working now! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #1 from meissner@novell.com 2006-11-23 09:40 MST ------- Created an attachment (id=106762) --> (https://bugzilla.novell.com/attachment.cgi?id=106762&action=view) mt.patch attached patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 lmichnovic@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #3 from lmichnovic@novell.com 2006-11-23 11:26 MST ------- I will keep this in mind for 10.3 when upgrading cpio to newer version 2.7. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #8 from lmichnovic@novell.com 2006-12-14 11:55 MST ------- Package have been submitted for SP1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 kcoombs@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kcoombs@novell.com ------- Comment #11 from kcoombs@novell.com 2007-02-23 13:37 MST ------- Trying the cpio-2.6-19.7 package from SLES 10 SP1 beta3 did not seem to make any difference for my customer: homer:/home/nicky # mt -f /dev/st0 datcompression 0 Can't write mode page. mt: /dev/st0: No such file or directory homer:/home/nicky # mt -f /dev/st0 datcompression 1 Can't write mode page. mt: /dev/st0: No such file or directory Also attached is a strace of the command. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #12 from kcoombs@novell.com 2007-02-23 13:38 MST ------- Created an attachment (id=120870) --> (https://bugzilla.novell.com/attachment.cgi?id=120870&action=view) strace of mt command -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 lmichnovic@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kcoombs@novell.com ------- Comment #13 from lmichnovic@novell.com 2007-02-26 02:49 MST ------- Which architecture? Do they have SLES or openSUSE? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #14 from hel@head.de 2007-02-26 02:55 MST ------- Remember that you need to be root to set datcompression. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 kcoombs@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kcoombs@novell.com | ------- Comment #15 from kcoombs@novell.com 2007-02-26 09:27 MST ------- This is SLES 10, and they are executing it as root. uname -a: Linux homer 2.6.16.27-0.6-smp #1 SMP Wed Dec 13 09:34:50 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #17 from lmichnovic@novell.com 2007-02-27 09:49 MST ------- Created an attachment (id=121345) --> (https://bugzilla.novell.com/attachment.cgi?id=121345&action=view) This patch fixes the datcompresion -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #18 from lmichnovic@novell.com 2007-02-27 09:54 MST ------- But for example mt -f /dev/st0 bsf 1 mt: /dev/st0: Input/output error still doesn't work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #19 from lmichnovic@novell.com 2007-02-27 10:03 MST ------- *** Bug 245039 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #22 from lmichnovic@novell.com 2007-03-09 11:09 MST ------- The patch was already submitted for SLE10 SP1. Keeping bug opened till submiting fix for SLES9 and stable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494 ------- Comment #23 from ast@novell.com 2007-05-11 09:01 MST ------- please fix this also for SLES9 SP4 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=223494#c24 Ladislav Michnovič <lmichnovic@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #24 from Ladislav Michnovič <lmichnovic@novell.com> 2007-08-17 05:09:35 MST --- This issue is fixed in update to cpio 2.9 for openSUSE 10.3. SLES9 is not affected. Closing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com