All of lore.kernel.org
 help / color / mirror / Atom feed
From: kasture <mayuresh.kasture@gmail.com>
To: linux-scsi@vger.kernel.org
Subject: Writing to a sector listed in GList
Date: Tue, 11 Nov 2008 19:51:36 -0800 (PST)	[thread overview]
Message-ID: <20453709.post@talk.nabble.com> (raw)


Hello All:

Can anybody explain me how I can write to a sector which is listed in GList?

Here is what I want to do(why? Well, there may not be any practical use. I
am just exploring reamapping for academic purposes and as part of that I
want to be able to do this). 

If somebody issues a command to reassign a healthy sector, it will be marked
as bad and will be listed in GList even if it is not a defective sector. So,
if we send LBA of that sector to sg_write_long, it should be able to write
there. But, the issue here is that READ DEFECT DATA does not provide any
DEFECT LIST FORMAT to retrieve the address as LBA. We can get CHS address
though. I don't know how to convert CHS into LBA if the drive uses zone bit
recording. Given all this I am not quite able to figure out how I can use
the CHS address that I retrieved to write some stuff on that sector.

Any comments will be very useful. Please reply even if you think that there
is NO way to do this.

Thanks in advance...

- Mayuresh
-- 
View this message in context: http://www.nabble.com/Writing-to-a-sector-listed-in-GList-tp20453709p20453709.html
Sent from the linux-scsi mailing list archive at Nabble.com.


                 reply	other threads:[~2008-11-12  3:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20453709.post@talk.nabble.com \
    --to=mayuresh.kasture@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.