* Writing to a sector listed in GList
@ 2008-11-12 3:51 kasture
0 siblings, 0 replies; only message in thread
From: kasture @ 2008-11-12 3:51 UTC (permalink / raw)
To: linux-scsi
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-12 3:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 3:51 Writing to a sector listed in GList kasture
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).