Skip to content

Commit

Permalink
📝 Sensitive options comment
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 committed Sep 21, 2024
1 parent 6fc3b35 commit 2cf836e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/lvm/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2cf836e

Please sign in to comment.