Re: sfdisk: dump format changed in 2.26

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

 



On Thu, Nov 19, 2015 at 10:28:28AM +0100, Tzafrir Cohen wrote:
> New versions seem to be able to use old dumps.

This has been the most important :-)

> A simple script I use here to convert new format to old:
> 
> sed \
>         -e 's/type=/Id=/' \
>         -e '/^label:/d' \
>         -e '/^label-id:/d' \
>         -e '/^device:/d' \
>         #
> 
> From what I could see, "Id" was changed to "type" in the body and
> various extra header lines were added. Al of those changes make the dump
> file unreadable by older versions.
> 
> Is there any intention to support some sort of compatibility through an
> extra option?

I'm not sure if we really need (and want) to provide compatibility in
this way. Maybe we can add the sed command to the man page.

    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