Re: [patch 2.6.12 1/1] st: support ANSI end-of-volume processing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Jun 2005, John W. Linville wrote:

> The ANSI labelled tape standard specifies that the EOD on tape must be
> preceeded by a trailer label.  If during writing your application hits
> LEOT (Logical End Of Tape), it must be able to write the trailer label.
> However with the default tape driver (st), you cannot write anything
> after the LEOT.

This is not true. Quoting from linux/Documentation/scsi/st.txt:

"When the end of medium early warning is encountered, the current write
is finished and the number of bytes is returned. The next write
returns -1 and errno is set to ENOSPC. To enable writing a trailer,
the next write is allowed to proceed and, if successful, the number of
bytes is returned. After this, -1 and the number of bytes are
alternately returned until the physical end of medium (or some other
error) is encountered."

(Yes, this should be added to the man page ;-)

> So the patch clears the error condition so that the
> application can write the trailer label (there is some space available
> on tape media between LEOT and PEOT=Physical End Of Tape).
> 
If this new way is what users want and it does not break existing 
applications, it should be added. Especially if it is the way some other 
common system behaves. However, when the semantics are changed, the 
documentation in the kernel sources should also be updated.

-- 
Kai
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux