Skip to content

Commit

Permalink
Merge pull request #2770 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2766-to-release-1.29

[release-1.29] feat: add directmount option to fix fsck stuck issue on Linux node
  • Loading branch information
andyzhangx authored Dec 24, 2024
2 parents b4a3431 + b693316 commit 78845d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/azuredisk/azure_common_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func findDiskByLun(lun int, io azureutils.IOHandler, _ *mount.SafeFormatAndMount
}

func formatAndMount(source, target, fstype string, options []string, m *mount.SafeFormatAndMount) error {
if newOptions, exists := azureutils.RemoveOptionIfExists(options, "noformat"); exists {
if newOptions, exists := azureutils.RemoveOptionIfExists(options, "directmount"); exists {
klog.V(2).Infof("formatAndMount - skip format for %s, old options: %v, new options: %v", target, options, newOptions)
return m.Mount(source, target, fstype, newOptions)
}
Expand Down

0 comments on commit 78845d6

Please sign in to comment.