mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
images/regfile.proto: adds additional fields to RegFileEntry
This adds build-id, checksum, checksum-config and checksum-parameter fields to RegFileEntry to store metadata used for file verification. build_id: Holds the build-id if it could be obtained checksum: Holds the checksum if it could be obtained checksum_config: Holds the configuration of bytes for which checksum has been calculated (The entire file, first N bytes or every Nth byte) checksum_parameter: Specifies the value of 'N', if required, for the configuration of bytes Signed-off-by: Ajay Bharadwaj <ajayrbharadwaj@gmail.com>
This commit is contained in:
parent
8354b526c4
commit
7b18c13c19
1 changed files with 28 additions and 10 deletions
|
|
@ -4,13 +4,31 @@ import "opts.proto";
|
|||
import "fown.proto";
|
||||
|
||||
message reg_file_entry {
|
||||
required uint32 id = 1;
|
||||
required uint32 flags = 2 [(criu).flags = "rfile.flags"];
|
||||
required uint64 pos = 3;
|
||||
required fown_entry fown = 5;
|
||||
required string name = 6;
|
||||
optional sint32 mnt_id = 7 [default = -1];
|
||||
optional uint64 size = 8;
|
||||
optional bool ext = 9;
|
||||
optional uint32 mode = 10;
|
||||
}
|
||||
required uint32 id = 1;
|
||||
required uint32 flags = 2 [(criu).flags = "rfile.flags"];
|
||||
required uint64 pos = 3;
|
||||
required fown_entry fown = 5;
|
||||
required string name = 6;
|
||||
optional sint32 mnt_id = 7 [default = -1];
|
||||
optional uint64 size = 8;
|
||||
optional bool ext = 9;
|
||||
optional uint32 mode = 10;
|
||||
|
||||
/* This field stores the build-ID of the file if it could be obtained. */
|
||||
repeated uint32 build_id = 11;
|
||||
|
||||
/* This field stores the CRC32C checksum of the file if it could be obtained. */
|
||||
optional uint32 checksum = 12;
|
||||
|
||||
/*
|
||||
* This field stores the configuration of bytes which were used in the
|
||||
* calculation of the checksum, if it could be obtained.
|
||||
*/
|
||||
optional uint32 checksum_config = 13;
|
||||
|
||||
/*
|
||||
* This field stores the checksum parameter if it was used in the calculation
|
||||
* of the checksum, if it could be obtained.
|
||||
*/
|
||||
optional uint32 checksum_parameter = 14;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue