uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

s2p: Add append mode for tape image files #104

Closed uweseimet closed 1 week ago

uweseimet commented 1 week ago

When writing data to a tape image file it would be convenient if appending data was supported.

The specified file must exist.

If the initial file size is less than the block size of the tape device the file shall be padded to the required size.

The respective property shall be "device.X.append=MAXIMUM_FILE_SIZE". When data are appended it shall be ensured that the maximum file size specified is not exceeded. A size of 0 (the default) means not to append.