1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

path-util: if parent can do name_to_handle() but relevant dir not, it's a mount point

This commit is contained in:
Lennart Poettering 2015-04-04 19:20:56 +02:00
parent f25afeb6ab
commit 8f06b239f2

View File

@ -515,7 +515,12 @@ int fd_is_mount_point(int fd) {
return 1; return 1;
} else } else
return -errno; return -errno;
} else } else if (nosupp)
/* The parent can do name_to_handle_at() but the
* directory we are interested in can't? If so, it
* must be a mount point. */
return 1;
else
return mount_id != mount_id_parent; return mount_id != mount_id_parent;
fallback: fallback: