Re: Writing onto disk sector | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
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 ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ
[Newbies FAQ] [Kernel List] [Site Home] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI] [DDR & Rambus] [UNIX Filesystems] [Linux Resources]
![]() |
![]() |