[CRIU] [PATCH urgent] proc_parse: Update inotify format

Cyrill Gorcunov gorcunov at openvz.org
Tue Dec 4 10:08:07 EST 2012


Since fdinfo patches were merged to -mm
tree the output format has been slightly
changed. So update our tool accordingly.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 proc_parse.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/proc_parse.c b/proc_parse.c
index e26639c..c711271 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -900,9 +900,9 @@ int parse_fdinfo(int fd, int type,
 			if (type != FD_TYPES__INOTIFY)
 				goto parse_err;
 			ret = sscanf(str,
-					"inotify wd: %8d ino: %16lx sdev: %8x "
-					"mask: %8x ignored_mask: %8x "
-					"fhandle-bytes: %8x fhandle-type: %8x "
+					"inotify wd:%x ino:%lx sdev:%x "
+					"mask:%x ignored_mask:%x "
+					"fhandle-bytes:%x fhandle-type:%x "
 					"f_handle: %n",
 					&entry.ify.wd, &entry.ify.i_ino, &entry.ify.s_dev,
 					&entry.ify.mask, &entry.ify.ignored_mask,
-- 
1.8.0.1



More information about the CRIU mailing list