]> git.proxmox.com Git - pxar.git/commitdiff
update mk-format-hashes for a new ENTRY
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Jul 2020 10:33:18 +0000 (12:33 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Jul 2020 05:31:22 +0000 (07:31 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
examples/mk-format-hashes.rs

index d2c9925b5a81afca8b8e4b4598622f1eba931b08..4ab6fff2e02fc7d1cc00e4faefb0a38f8119a0bb 100644 (file)
@@ -1,7 +1,16 @@
 use pxar::format::hash_filename;
 
 const CONSTANTS: &[(&str, &str, &str)] = &[
-    ("", "PXAR_ENTRY", "__PROXMOX_FORMAT_ENTRY__"),
+    (
+        "Beginning of an entry (current version).",
+        "PXAR_ENTRY",
+        "__PROXMOX_FORMAT_ENTRY_V2__",
+    ),
+    (
+        "Previous version of the entry struct",
+        "PXAR_ENTRY_V1",
+        "__PROXMOX_FORMAT_ENTRY__",
+    ),
     ("", "PXAR_FILENAME", "__PROXMOX_FORMAT_FILENAME__"),
     ("", "PXAR_SYMLINK", "__PROXMOX_FORMAT_SYMLINK__"),
     ("", "PXAR_DEVICE", "__PROXMOX_FORMAT_DEVICE__"),