fix incorrect getDeviceNameFromMount comment

This commit is contained in:
carlory
2023-11-23 16:36:44 +08:00
parent d61cbac69a
commit c494e8b18e
2 changed files with 2 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ type HostUtils interface {
PathIsDevice(pathname string) (bool, error)
// GetDeviceNameFromMount finds the device name by checking the mount path
// to get the global mount path within its plugin directory.
// TODO: Remove this method once the rbd and vsphere plugins are removed from in-tree.
GetDeviceNameFromMount(mounter mount.Interface, mountPath, pluginMountDir string) (string, error)
// MakeRShared checks that given path is on a mount with 'rshared' mount
// propagation. If not, it bind-mounts the path as rshared.