Commit 705bf5ab authored by Pavel Emelyanov's avatar Pavel Emelyanov

img: Hide image dir fd into util.c

No image copy occurs since 2b175282, so this
fd can be hidden. Thus fixind the FIXME near it :)
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f66913ba
...@@ -114,11 +114,6 @@ extern struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX]; ...@@ -114,11 +114,6 @@ extern struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX];
#define FMT_FNAME_IPCNS_SEM "ipcns-sem-%d.img" #define FMT_FNAME_IPCNS_SEM "ipcns-sem-%d.img"
#define FMT_FNAME_SK_QUEUES "sk-queues.img" #define FMT_FNAME_SK_QUEUES "sk-queues.img"
/*
* FIXME -- this is required for legacy image copy only.
* Don't use it for other reason and remove the former one.
*/
extern int image_dir_fd;
extern int open_image_dir(void); extern int open_image_dir(void);
extern void close_image_dir(void); extern void close_image_dir(void);
......
...@@ -129,6 +129,8 @@ int move_img_fd(int *img_fd, int want_fd) ...@@ -129,6 +129,8 @@ int move_img_fd(int *img_fd, int want_fd)
return 0; return 0;
} }
static int image_dir_fd = -1;
int open_image(int type, unsigned long flags, ...) int open_image(int type, unsigned long flags, ...)
{ {
char path[PATH_MAX]; char path[PATH_MAX];
...@@ -172,8 +174,6 @@ err: ...@@ -172,8 +174,6 @@ err:
return -1; return -1;
} }
int image_dir_fd = -1;
int open_image_dir(void) int open_image_dir(void)
{ {
int fd; int fd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment