Bug 5928 - problem reading files with ide-tape driver
Summary: problem reading files with ide-tape driver
Status: REJECTED INSUFFICIENT_DATA
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: IDE (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Bartlomiej Zolnierkiewicz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 06:02 UTC by Pascal GREGIS
Modified: 2008-02-16 10:49 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.15
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Pascal GREGIS 2006-01-20 06:02:50 UTC
Most recent kernel where this bug did not occur:
Distribution:LFS
Hardware Environment:Exabyte IDE tape drive
Software Environment:
Problem Description:
I'm afraid I found another bug, but with ide-tape this time.

I try to give you a description :

I have 3 tar files :
tapetar.tar :           10k
midletapetar.tar :      30k
bigtapetar.tar :        950k

With st sg and ide-scsi, I wrote twice the 3 files consecutively :
root@mybox $ dd if=tapetar.tar if=/dev/nst0 bs=1k
root@mybox $ dd if=midletapetar.tar if=/dev/nst0 bs=1k
root@mybox $ dd if=bigtapetar.tar if=/dev/nst0 bs=1k
*2

As I mentionned above, I succeeded to read them.
But then I unloaded st and loaded ide-tape instead :
root@mybox $ rmmod st sg ide-scsi
root@mybox $ modprobe ide-tape

And then I performed a read :
root@mybox $ mt -f /dev/nht0 tell
At block 0.
root@mybox $ dd if=/dev/nht0 of=outtar.tar bs=1k
1980+0 records in
1980+0 records out

Well it did read all the files I wrote on the tape putting them all in the same output tar file.
I don't know if it's a normal behaviour, however then I tried to write on the tape then to read :


root@mybox $ mt -f /dev/nht0 tell
At block 0.
root@mybox $ dd if=bigtar.tar of=/dev/ht0 bs=1k
950+0 records in
950+0 records out
root@mybox $ mt -f /dev/nht0 tell
At block 0.
root@mybox $ mt -f /dev/nht0 asf 1
root@mybox $ mt -f /dev/nht0 tell
At block 11.

It seems that the write did silently fail, or did not change the file marks, well it looks wrong.



Steps to reproduce:
Comment 1 Pascal GREGIS 2006-01-20 06:09:47 UTC
hmmm... sorry, in the 3 first commands in the description, understand :
of=/dev/nst0
instead of
if=/dev/nst0.





 
Comment 2 Bartlomiej Zolnierkiewicz 2006-01-23 03:08:59 UTC
Thanks for reporting this unfortunately I will not be able to work on this for a
while (my bug queue is full).
Comment 3 Natalie Protasevich 2007-07-08 12:24:14 UTC
Any updates on thie problem? It looks like there were some fixes since the report, did you test with newer kernels recently?
Thanks.
Comment 4 Bartlomiej Zolnierkiewicz 2008-02-16 10:49:57 UTC
I'm closing this one, please re-open if the problem still happens with the recent kernels.

Note You need to log in before you can comment on or make changes to this bug.