[223] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

st driver open(O_WRONLY) of write-protected tape

daemon@ATHENA.MIT.EDU (Brandon S. Allbery KF8NH)
Sat Jun 3 22:38:46 1995

To: linux-scsi@vger.rutgers.edu
Date: Sat, 03 Jun 1995 21:49:48 -0400
From: "Brandon S. Allbery KF8NH" <bsa@kf8nh.wariat.org>

Kernel 1.2.8

I was surprised today when brainfade during a multivolume backup caused me 
to place a write-protected tape in the drive for volume 4 of the backup --- 
and got a write error "Permission denied" and an aborted backup instead of a 
re-prompt for the device as GNU tar normally does.  This led me to look at 
st.c, where I found that opening a write-protected tape actuallty opens the 
tape read-only but causes writes to return -EPERM.

README.st makes no mention of this unexpected behavior.  Is it in fact 
deliberate, and if so why?  I would much prefer not having to start over in 
the middle of a 2 1/2 hour backup (1GB disk, QIC-150 tape...).

++Brandon
-- 
Brandon S. Allbery	Linux & Solaris 2 hack; ham; soccer nut; pipe smoker
bsa@kf8nh.wariat.org	APK Net Ltd. *is* The Internet in Northern Ohio
bsa@telotech.com	Telotech, Inc., a Sun / Unify 2000 VAR


home help back first fref pref prev next nref lref last post