public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ujval Lodha" <ujval@gdc-tech.com>
To: linux-scsi@vger.kernel.org
Subject: Writing to tape from C system calls
Date: Fri, 12 Dec 2003 20:39:06 +0800	[thread overview]
Message-ID: <035701c3c0ac$f1ccbae0$aa00a8c0@ASTERIX> (raw)
In-Reply-To: 033701c3c0ac$97659270$aa00a8c0@ASTERIX


Hi

I'm new to tape devices.

My application requires me to seek to a certain block on the tape device and
write data on it (besides being able to retrieve data by reading).

So far, I have no trouble reading from the tape.

When I write to it at any block that block becomes the last block on the
device. I am unable to seek to any block after that on the tape. I have
tried :

    a. Using mt to seek and dd to write
    b. Using open / ioctl / write from C

Both with the same results. I am using a Tandberg SDLT for my tests with the
linux kernel st drivers.

Is this normal? Is it not possible to use the tape device - and modify data
at any block by seeking to it and writing?

Is there some source of information where I can read about programming tape
devices from C? So far, I havent been able to find one.

Please advise.
Regards,
Ujval Lodha




       reply	other threads:[~2003-12-12 12:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <033701c3c0ac$97659270$aa00a8c0@ASTERIX>
2003-12-12 12:39 ` Ujval Lodha [this message]
2003-12-12 15:14   ` Writing to tape from C system calls Tony Battersby
2003-12-12 16:18     ` Ujval Lodha
2003-12-12 16:38       ` Tony Battersby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='035701c3c0ac$f1ccbae0$aa00a8c0@ASTERIX' \
    --to=ujval@gdc-tech.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox