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
056f41fb
Commit
056f41fb
authored
Apr 05, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
img: Remove unused open_image_ro_nocheck
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
c40e3201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
crtools.h
include/crtools.h
+0
-1
util.c
util.c
+0
-17
No files found.
include/crtools.h
View file @
056f41fb
...
@@ -121,7 +121,6 @@ extern void close_image_dir(void);
...
@@ -121,7 +121,6 @@ extern void close_image_dir(void);
int
open_image
(
int
type
,
unsigned
long
flags
,
...);
int
open_image
(
int
type
,
unsigned
long
flags
,
...);
#define open_image_ro(type, ...) open_image(type, O_RDONLY, ##__VA_ARGS__)
#define open_image_ro(type, ...) open_image(type, O_RDONLY, ##__VA_ARGS__)
extern
int
open_image_ro_nocheck
(
const
char
*
fmt
,
...);
#define LAST_PID_PATH "/proc/sys/kernel/ns_last_pid"
#define LAST_PID_PATH "/proc/sys/kernel/ns_last_pid"
#define LAST_PID_PERM 0666
#define LAST_PID_PERM 0666
...
...
util.c
View file @
056f41fb
...
@@ -129,23 +129,6 @@ int move_img_fd(int *img_fd, int want_fd)
...
@@ -129,23 +129,6 @@ int move_img_fd(int *img_fd, int want_fd)
return
0
;
return
0
;
}
}
int
open_image_ro_nocheck
(
const
char
*
fmt
,
...)
{
char
path
[
PATH_MAX
];
va_list
args
;
int
tmp
;
va_start
(
args
,
fmt
);
vsprintf
(
path
,
fmt
,
args
);
va_end
(
args
);
tmp
=
openat
(
image_dir_fd
,
path
,
O_RDONLY
);
if
(
tmp
<
0
)
pr_warn
(
"Can't open image %s: %m
\n
"
,
path
);
return
tmp
;
}
int
open_image
(
int
type
,
unsigned
long
flags
,
...)
int
open_image
(
int
type
,
unsigned
long
flags
,
...)
{
{
char
path
[
PATH_MAX
];
char
path
[
PATH_MAX
];
...
...
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