← Commit list

b4f93f562

Denys Vlasenko
Denys Vlasenko
2020-12-02
SUCCESS Duration: 150s

Subject

mount: do not guess bind mounts as nfs

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mount.c+1 -0
@@ -2066,6 +2066,7 @@ static int singlemount(struct mntent *mp, int ignore_busy)
// Might this be an NFS filesystem?
if ((!mp->mnt_type || is_prefixed_with(mp->mnt_type, "nfs"))
&& strchr(mp->mnt_fsname, ':') != NULL
+ && !(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))
) {
if (!mp->mnt_type)
mp->mnt_type = (char*)"nfs";