From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Regarding writing into raw file
Date: Tue, 25 Jan 2011 14:15:53 +0100 [thread overview]
Message-ID: <4D3ECD09.7000407@gmail.com> (raw)
In-Reply-To: <AANLkTin-e53gpG73AQik36Jm4jr9ZEeey_wLTaUZO9hO@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]
On 01/25/2011 02:01 PM, Gnanasekar Loganathan wrote:
> Actually i'm writing to the first 512 bytes only.
>
You're not. You're writing to a sector well within the partition (the
one at part_start and not the one at 0)
> 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?
>
read_hook doesn't work with blocklists. You overengineer the stuff. Have
a look at e.g. gptsync.
> 2011/1/25 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>
>> 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
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2011-01-25 13:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 14:49 Regarding writing into raw file Gnanasekar Loganathan
2011-01-24 14:57 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 6:02 ` Gnanasekar Loganathan
2011-01-25 7:06 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 10:34 ` Gnanasekar Loganathan
2011-01-25 11:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 13:01 ` Gnanasekar Loganathan
2011-01-25 13:15 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=4D3ECD09.7000407@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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.