mountpoint-util: introduce path_is_mount_point_full

This commit is contained in:
Mike Yuan
2024-02-06 15:09:28 +08:00
parent 561d879305
commit b409aacb0a
29 changed files with 97 additions and 94 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
if (relabel)
(void) label_fix(p->where, LABEL_IGNORE_ENOENT|LABEL_IGNORE_EROFS);
r = path_is_mount_point(p->where, NULL, AT_SYMLINK_FOLLOW);
r = path_is_mount_point_full(p->where, /* root = */ NULL, AT_SYMLINK_FOLLOW);
if (r < 0 && r != -ENOENT) {
log_full_errno(priority, r, "Failed to determine whether %s is a mount point: %m", p->where);
return (p->mode & MNT_FATAL) ? r : 0;