From 72528d183615ad035bf3b7e6d204ea7800161c1c Mon Sep 17 00:00:00 2001 From: Muhammed Hussein Karimi Date: Sat, 21 Sep 2024 12:30:21 +0330 Subject: [PATCH] :memo: Sensitive options comment Signed-off-by: Muhammed Hussein Karimi --- pkg/lvm/mount.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/lvm/mount.go b/pkg/lvm/mount.go index aff35250..36721b1e 100644 --- a/pkg/lvm/mount.go +++ b/pkg/lvm/mount.go @@ -72,7 +72,14 @@ type PodLVInfo struct { func FormatAndMountVol(devicePath string, mountInfo *MountInfo) error { mounter := &mount.SafeFormatAndMount{Interface: mount.New(""), Exec: utilexec.New()} - err := mounter.FormatAndMountSensitiveWithFormatOptions(devicePath, mountInfo.MountPath, mountInfo.FSType, mountInfo.MountOptions, nil, mountInfo.FormatOptions) + err := mounter.FormatAndMountSensitiveWithFormatOptions( + devicePath, + mountInfo.MountPath, + mountInfo.FSType, + mountInfo.MountOptions, + nil, // sensitiveOptions + mountInfo.FormatOptions, + ) if err != nil { klog.Errorf( "lvm: failed to mount volume %s [%s] to %s, error %v",