diff options
author | Zeyad Yasser <zeyady98@gmail.com> | 2021-08-01 14:03:28 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2021-09-03 20:31:00 +0300 |
commit | ca3e3c50bec92390a6d57f827f9685b48ec6200c (patch) | |
tree | 50a67634ae6eb2de31c863e788019f9e3886c261 /images | |
parent | cd1570b15ee0b0fea89f3a8651640b24117d513a (diff) |
inventory: save network lock method to reuse in restore
When the network is locked using a specific method like iptables
or nftables there is no need to require passing the same method
during restore.
We save the lock method during dump in the inventory image and
use that in restore.
This always overwrites the restore --network-lock option.
v2: store opts.network_lock_method directly to avoid dependency
on rpc.proto's 'enum criu_network_lock_method'.
v3: fall back to iptables if image is generated with an older
version of CRIU.
v4: remove --network-lock from netns_lock_* from restore
Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
Diffstat (limited to 'images')
-rw-r--r-- | images/inventory.proto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/images/inventory.proto b/images/inventory.proto index 56e85a80a..a735bad1d 100644 --- a/images/inventory.proto +++ b/images/inventory.proto @@ -20,4 +20,5 @@ message inventory_entry { optional uint64 dump_uptime = 8; optional uint32 pre_dump_mode = 9; optional bool tcp_close = 10; + optional uint32 network_lock_method = 11; } |