All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Chang <mchang@suse.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH] docs: Update for stopping small mbr gap support
Date: Fri, 6 Mar 2020 12:11:41 +0800	[thread overview]
Message-ID: <20200306041141.GA3353@mercury> (raw)
In-Reply-To: <20200305143820.qikcgpl3iabn4h6j@tomti.i.net-space.pl>

On Thu, Mar 05, 2020 at 03:38:20PM +0100, Daniel Kiper wrote:
> On Thu, Mar 05, 2020 at 06:40:01PM +0800, Michael Chang wrote:
> > Further to the discussion about disabling btrfs zstd support for
> > i386-pc[1], this paragraph in manual about mbr gap size doesn't seem to
> > hold true any longer.
> >
> > "You must ensure that the first partition starts at least 31 KiB (63
> > sectors) from the start of the disk"
> >
> > As in many occasions we inevitablely have to provide core image size
> > that goes beyond 31 KiB, this statement becomes a true liability as
> > people would be misguided and think it is still fine to use small MBR
> > gap, that has always been a headache in distribution's upgrade path as
> > growing new feature would render the size requirement bigger but no way
> > for the user to relocate their partitions.
> 
> Could you split this paragraph into a few sentences? Now it does not
> read very well...

OK. I'll come up with a better expression next version.

> 
> > The patch tries to correct the paragraph with a more practical size that
> > works for grub and also for modern computer systems in general.
> >
> > [1] https://lists.gnu.org/archive/html/grub-devel/2019-11/msg00025.html
> >
> > Signed-off-by: Michael Chang <mchang@suse.com>
> > ---
> >  docs/grub.texi | 20 ++++++++++++++------
> >  1 file changed, 14 insertions(+), 6 deletions(-)
> >
> > diff --git a/docs/grub.texi b/docs/grub.texi
> > index 83979af38..651468268 100644
> > --- a/docs/grub.texi
> > +++ b/docs/grub.texi
> > @@ -845,12 +845,20 @@ only be used if the @file{/boot} filesystem is on the same disk that the
> >  BIOS boots from, so that GRUB does not have to rely on guessing BIOS drive
> >  numbers.
> >
> > -The GRUB development team generally recommends embedding GRUB before the
> > -first partition, unless you have special requirements.  You must ensure that
> > -the first partition starts at least 31 KiB (63 sectors) from the start of
> > -the disk; on modern disks, it is often a performance advantage to align
> > -partitions on larger boundaries anyway, so the first partition might start 1
> > -MiB from the start of the disk.
> > +The GRUB development team generally recommends embedding GRUB before the first
> > +partition, unless you have special requirements. You must ensure that the first
> > +partition starts at least 1 MiB from the start of the disk; on modern disks, it
> 
> s/; on modern disks, it/. Additionally, on modern disks it/

OK.

> 
> > +is often a performance advantage to align partitions on larger boundaries and 1
> > +MiB is the least common multiple of many used alignment sizes. For SSD, it
> 
> s/For SSD, it/E.g. SSD, it/

OK.

> 
> > +became crucial to have the partition correctly aligned to avoid excessive
> > +read-modify-write cycles and thus modern tools set to use 1 MiB as a stardard
> > +practice.
> > +
> > +In case legacy systems that cannot boot if first partition not on the cylinder
> 
> s/In case legacy/In case of legacy/
> s/partition not/partition is not/

OK.

> 
> > +boundary, the fallback blocklist install method should remain working for them
> > +if the core image growing too much someday. Here we just can't advertise that
> > +31 KiB (63 sectors) is a sensible size any longer as that would pose great
> > +constraint to include new features as time goes by.

Thanks a lot for taking time to review.

Regards,
Michael

> 
> Daniel
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


      parent reply	other threads:[~2020-03-06  4:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-05 10:40 [PATCH] docs: Update for stopping small mbr gap support Michael Chang
2020-03-05 14:38 ` Daniel Kiper
2020-03-05 16:00   ` C. Masloch
2020-03-06  4:13     ` Michael Chang
2020-03-06  4:11   ` Michael Chang [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=20200306041141.GA3353@mercury \
    --to=mchang@suse.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.