[PATCH] fadvise(2) system call

Warner Losh imp at bsdimp.com
Thu Nov 10 06:52:17 UTC 2011


On Nov 9, 2011, at 11:03 PM, Tim Kientzle wrote:
> Anyone know how to properly request a "skip forward"
> on tape drives?  That's one of the missing pieces.

I thought that you couldn't seek(2) on tape drives.  You must read(2) the data.  At least for this application, since a tar file would be just one file on the tape.  If you want to see to the next file mark, you need to use an ioctl to get there, or read a lot.

Warner



More information about the freebsd-arch mailing list