[CRIU] [PATCH] fsnotify: print an error if a file can't be opened
Andrey Vagin
avagin at gmail.com
Wed Oct 7 00:38:44 PDT 2015
From: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
fsnotify.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fsnotify.c b/fsnotify.c
index 9b13233..53d404d 100644
--- a/fsnotify.c
+++ b/fsnotify.c
@@ -435,8 +435,10 @@ static char *get_mark_path(const char *who, struct file_remap *remap,
} else
*target = open_handle(s_dev, i_ino, f_handle);
- if (*target < 0)
+ if (*target < 0) {
+ pr_perror("Unable to open %s", f_handle->path);
goto err;
+ }
/*
* fanotify/inotify open syscalls want path to attach
--
2.4.3
More information about the CRIU
mailing list