[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regarding writing into raw file
From: |
Gnanasekar Loganathan |
Subject: |
Re: Regarding writing into raw file |
Date: |
Tue, 25 Jan 2011 18:31:09 +0530 |
Actually i'm writing to the first 512 bytes only.
The value of SECTOR_SIZE is 512.
Also i noticed that in loadenv.c, while reading the from grubenv file,
read_hook is called. Why the read_hook is not called in this scenario?
2011/1/25 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden>:
> On 01/25/2011 11:34 AM, Gnanasekar Loganathan wrote:
>> if(grub_disk_write(disk, part_start, 0, SECTOR_SIZE, nvbuf) ) {
>>
> Writes as well as reads are to partition, not to entire disk erand so
> are the sector numbers
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>