BmapCreate: fix bmap file format version
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 1 Nov 2013 10:49:21 +0000 (12:49 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 1 Nov 2013 11:18:46 +0000 (13:18 +0200)
By a mistake, I've made bmap file format version to be 1.4, while is should
really have been 2.0, because there were incompatible changes. Fix this.

Change-Id: If2618db2c12b82f64e1f813e72a2786efdf4d3d5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCreate.py

index e1a84c15f867d76a4760096f5d66b695389bc7a9..2cb7c06036a2ad0d4d8ba0f2b869c19fbf4070bc 100644 (file)
@@ -49,11 +49,16 @@ from bmaptools import Fiemap
 # The bmap format version we generate.
 #
 # Changelog:
-# o 1.3 -> 1.4:
+# o 1.3 -> 2.0:
 #   Support SHA256 and SHA512 checksums, in 1.3 only SHA1 was supported.
 #   "BmapFileChecksum" is used instead of "BmapFileSHA1", and "chksum="
-#   attribute is used instead "sha1=". Introduced "ChecksumType" tag.
-SUPPORTED_BMAP_VERSION = "1.4"
+#   attribute is used instead "sha1=". Introduced "ChecksumType" tag. This is
+#   an incompatible change.
+#   Note, bmap format 1.4 is identical to 2.0. Version 1.4 was a mistake,
+#   instead of incrementing the major version number, we incremented minor
+#   version number. Unfortunately, the mistake slipped into bmap-tools version
+#   3.0, and was only fixed in bmap-tools v3.1.
+SUPPORTED_BMAP_VERSION = "2.0"
 
 _BMAP_START_TEMPLATE = \
 """<?xml version="1.0" ?>