mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
vma: Add comments about some dump fields of vma_area
We have non-obvious handling of vm_file_fd/vm_socket_id pair and the vma->file_borrowed. Comment these to in the structure. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
cf8c9ae870
commit
f84d19e09a
@ -30,6 +30,12 @@ struct vma_area {
|
|||||||
union {
|
union {
|
||||||
struct /* for dump */ {
|
struct /* for dump */ {
|
||||||
union {
|
union {
|
||||||
|
/*
|
||||||
|
* These two cannot be assigned at once.
|
||||||
|
* The file_fd is an fd for a regular file and
|
||||||
|
* the socket_id is the inode number of the
|
||||||
|
* mapped (PF_PACKET) socket.
|
||||||
|
*/
|
||||||
int vm_file_fd;
|
int vm_file_fd;
|
||||||
int vm_socket_id;
|
int vm_socket_id;
|
||||||
};
|
};
|
||||||
@ -37,6 +43,11 @@ struct vma_area {
|
|||||||
char *aufs_rpath; /* path from aufs root */
|
char *aufs_rpath; /* path from aufs root */
|
||||||
char *aufs_fpath; /* full path from global root */
|
char *aufs_fpath; /* full path from global root */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When several subsequent vmas have the same
|
||||||
|
* dev:ino pair all 'tail' ones set this to true
|
||||||
|
* and the vmst points to the head's stat buf.
|
||||||
|
*/
|
||||||
bool file_borrowed;
|
bool file_borrowed;
|
||||||
struct stat *vmst;
|
struct stat *vmst;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user