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

fsnotify: fanotify -- Fix object read procedure

I occasionally read FanotifyMarkEntry object as InotifyWdEntry
in collect_one_fanotify_mark, this didn't trigger a bug in test
since the events are still occured (and before protobuf file
refine the formats were close to each other), which means
the fanotify00 test-case need to be updated (which is addressed
in further patch).

And don't forget to init fields.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 29c94007
...@@ -499,7 +499,10 @@ static int collect_one_fanotify_mark(void *o, ProtobufCMessage *msg) ...@@ -499,7 +499,10 @@ static int collect_one_fanotify_mark(void *o, ProtobufCMessage *msg)
{ {
struct fsnotify_mark_info *mark = o; struct fsnotify_mark_info *mark = o;
mark->iwe = pb_msg(msg, InotifyWdEntry); mark->fme = pb_msg(msg, FanotifyMarkEntry);
INIT_LIST_HEAD(&mark->list);
mark->remap = NULL;
return collect_fanotify_mark(mark); return collect_fanotify_mark(mark);
} }
......
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