Re: [PATCH V2] dos: copy previous bootsector for dos partition table

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

 



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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux