Skip to content

Commit 2cf836e

Browse files
committed
📝 Sensitive options comment
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
1 parent 6fc3b35 commit 2cf836e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkg/lvm/mount.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,14 @@ type PodLVInfo struct {
7272
func FormatAndMountVol(devicePath string, mountInfo *MountInfo) error {
7373
mounter := &mount.SafeFormatAndMount{Interface: mount.New(""), Exec: utilexec.New()}
7474

75-
err := mounter.FormatAndMountSensitiveWithFormatOptions(devicePath, mountInfo.MountPath, mountInfo.FSType, mountInfo.MountOptions, nil, mountInfo.FormatOptions)
75+
err := mounter.FormatAndMountSensitiveWithFormatOptions(
76+
devicePath,
77+
mountInfo.MountPath,
78+
mountInfo.FSType,
79+
mountInfo.MountOptions,
80+
nil, // sensitiveOptions
81+
mountInfo.FormatOptions,
82+
)
7683
if err != nil {
7784
klog.Errorf(
7885
"lvm: failed to mount volume %s [%s] to %s, error %v",

0 commit comments

Comments
 (0)