Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: "Jean-Loup 'clippix' Bogalho" <clippix@lse.epita.fr>
Cc: util-linux@vger.kernel.org, gabriel@lse.epita.fr
Subject: Re: [PATCH V2] dos: copy previous bootsector for dos partition table
Date: Mon, 13 Apr 2015 13:20:59 +0200	[thread overview]
Message-ID: <20150413112059.GP3923@ws.net.home> (raw)
In-Reply-To: <20150407094535.GF3923@ws.net.home>

On Tue, Apr 07, 2015 at 11:45:35AM +0200, Karel Zak wrote:
>  Maybe it would be better to add --protect-bootsector command line option;
>  if you want to implement it:
> 
>     - add protect_boot flag to struct fdisk_context (fdiskP.h)
>     - add a new function fdisk_protect_boot(cxt, enable) to set/unset the new flag
> 
>     - extend fdisk_init_firstsector_buffer() to protect specified area:
>          fdisk_init_firstsector_buffer(cxt, 0, 446)
> 
>     - call fdisk_init_firstsector_buffer() from dos_create_disklabel()
>       with proper offset and size when the protect_boot flag is enabled
> 
>     - add fdisk_protect_boot() to 
>         libfdisk/src/libfdisk.h.in
>         libfdisk/src/libfdisk.sym
>         libfdisk/docs/libfdisk-sections.txt

I'm working on this, because it's necessary for sfdisk.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2015-04-13 11:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-04 16:05 [PATCH V2] dos: copy previous bootsector for dos partition table Jean-Loup 'clippix' Bogalho
2015-04-07  9:45 ` Karel Zak
2015-04-13 11:20   ` Karel Zak [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=20150413112059.GP3923@ws.net.home \
    --to=kzak@redhat.com \
    --cc=clippix@lse.epita.fr \
    --cc=gabriel@lse.epita.fr \
    --cc=util-linux@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox