grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why prot_size subtract GRUB_DISK_SECTOR_SIZE in the file grub-1.98/l


From: Baisheng Wang
Subject: Re: Why prot_size subtract GRUB_DISK_SECTOR_SIZE in the file grub-1.98/loader/i386/linux.c ?
Date: Thu, 10 Feb 2011 20:52:30 +0800


Let me clarify again.

In grub-1.98/loader/i386/linux.c, for the code lines:

"grub_file_seek (file, real_size + GRUB_DISK_SECTOR_SIZE);"

and

"prot_size = grub_file_size (file) - real_size - GRUB_DISK_SECTOR_SIZE;"

I want to know why there is another sector, I mean GRUB_DISK_SECTOR_SIZE ?

Thanks,
Baisheng


2011/2/10 Baisheng Wang <baisheng.wang.cn@gmail.com>
Dear all:

In the file grub-1.98/loader/i386/linux.c, for the variable prot_size, why subtract GRUB_DISK_SECTOR_SIZE ?

Thanks & Regards,
Baisheng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]