mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
dump: support SYSV IPC vma
This patch introduces the following changes: 1) introduces new flag VMA_AREA_SYSVIPC to mark corresponding vma entries. 2) enhance task /proc/<pid>/maps parsing to obtain first 5 letters of mapped file. If device major file belong to ins equal to 0 (tmpfs) and it's name starts with "/SYSV", then this mapping is considered as SYSV IPC and corresponding vma entry status is updated with VMA_AREA_SYSVIPC flag. 3) omit dumping of mapping pages for SYSV IPC vmas. Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
40fc4d2122
commit
b3cfe73556
@@ -169,6 +169,8 @@ struct ipc_msg_entry {
|
||||
#define VMA_ANON_SHARED (1 << 8)
|
||||
#define VMA_ANON_PRIVATE (1 << 9)
|
||||
|
||||
#define VMA_AREA_SYSVIPC (1 << 10)
|
||||
|
||||
#define vma_entry_is(vma, s) (((vma)->status & (s)) == (s))
|
||||
#define vma_entry_len(vma) ((vma)->end - (vma)->start)
|
||||
#define final_vma_entry(vma) ((vma)->start == 0 && (vma)->end == 0)
|
||||
|
Reference in New Issue
Block a user