Adding descriptive comment about overlay fix

Signed-off-by: Erik Jansson <erikja@axis.com>
This commit is contained in:
jaerik 2019-09-06 11:36:41 +02:00 committed by GitHub
parent 0a8da7895f
commit 8a81739956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,6 +223,7 @@ func processMounts(mounts []*mount.Info, excludedMountpointPrefixes []string) ma
} }
} }
// overlay fix: Making mount source unique for all overlay mounts, using the mount's major and minor ids.
if mount.Fstype == "overlay" { if mount.Fstype == "overlay" {
mount.Source = fmt.Sprintf("%s_%d-%d", mount.Source, mount.Major, mount.Minor) mount.Source = fmt.Sprintf("%s_%d-%d", mount.Source, mount.Major, mount.Minor)
} }