Commit fdc56e53 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

proc_parse: Update inotify format

Since fdinfo patches were merged to -mm
tree the output format has been slightly
changed. So update our tool accordingly.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent caf87545
...@@ -900,9 +900,9 @@ int parse_fdinfo(int fd, int type, ...@@ -900,9 +900,9 @@ int parse_fdinfo(int fd, int type,
if (type != FD_TYPES__INOTIFY) if (type != FD_TYPES__INOTIFY)
goto parse_err; goto parse_err;
ret = sscanf(str, ret = sscanf(str,
"inotify wd: %8d ino: %16lx sdev: %8x " "inotify wd:%x ino:%lx sdev:%x "
"mask: %8x ignored_mask: %8x " "mask:%x ignored_mask:%x "
"fhandle-bytes: %8x fhandle-type: %8x " "fhandle-bytes:%x fhandle-type:%x "
"f_handle: %n", "f_handle: %n",
&entry.ify.wd, &entry.ify.i_ino, &entry.ify.s_dev, &entry.ify.wd, &entry.ify.i_ino, &entry.ify.s_dev,
&entry.ify.mask, &entry.ify.ignored_mask, &entry.ify.mask, &entry.ify.ignored_mask,
......
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