Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
a135b40b
Commit
a135b40b
authored
Jul 01, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ghost-files: Merge dump and restore helper structs
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
218f0a9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
files-reg.c
files-reg.c
+9
-8
No files found.
files-reg.c
View file @
a135b40b
...
...
@@ -14,22 +14,23 @@
#include "files-reg.h"
struct
ghost_file
{
struct
list_head
list
;
u32
id
;
char
*
path
;
};
/*
* Ghost files are those not visible from the FS. Dumping them is
* nasty and the only way we have -- just carry its contents with
* us. Any brave soul to implement link unlinked file back?
*/
struct
ghost_file
_dumpee
{
struct
ghost_file
{
struct
list_head
list
;
u32
id
;
union
{
struct
/* for dumping */
{
u32
dev
;
u32
ino
;
};
struct
/* for restoring */
{
char
*
path
;
};
};
};
static
u32
ghost_file_ids
=
1
;
...
...
@@ -212,7 +213,7 @@ static int dump_ghost_file(int _fd, u32 id, const struct stat *st)
static
int
dump_ghost_remap
(
char
*
path
,
const
struct
stat
*
st
,
int
lfd
,
u32
id
)
{
struct
ghost_file
_dumpee
*
gf
;
struct
ghost_file
*
gf
;
struct
remap_file_path_entry
rpe
;
pr_info
(
"Dumping ghost file for fd %d id %#x
\n
"
,
lfd
,
id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment