On Wed, 2008-08-20 at 13:21 +0530, Akhil wrote:
> I am not sure whether this is a relevant question...please ignore if
> it seems nonsense....
> 
> Is it possible in linux (2.6 or 2.4) to write/read directly onto a
> particular disk sector? If yes , how?

Hmmm, by creating a bio[1] (linux2.6) to write to that particular sector
(bi_sector) (of the given disk/block device (bi_bdev))? That's how the
kernel does it.

Razvan

[1] http://lxr.linux.no/linux+v2.6.26.2/include/linux/bio.h#L74


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to