Commit 6209ff45 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

fsnotify: print correct error if open_by_handle_at failed

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d98925d5
......@@ -115,9 +115,11 @@ static int open_handle(unsigned int s_dev, unsigned long i_ino,
}
fd = sys_open_by_handle_at(mntfd, (void *)&handle, 0);
if (fd < 0)
if (fd < 0) {
errno = -fd;
pr_perror("Can't open file handle for 0x%08x:0x%016lx",
s_dev, i_ino);
}
close(mntfd);
out:
......
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