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:
parent
f25afeb6ab
commit
8f06b239f2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user