Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 19, 2024
1 parent 099237d commit 677ffae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/os/connection/snapshot/volumemounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ func (m *VolumeMounter) mountVolume(fsInfo *MountPartitionDto) error {
opts = append(opts, "nouuid")
}
opts = stringx.DedupStringArray(opts)
opts = saninizeOptions(opts)
opts = sanitizeOptions(opts)

scanDir := m.ScanDirs[fsInfo.key()]
log.Debug().Str("fstype", fsInfo.FsType).Str("device", fsInfo.Name).Str("scandir", scanDir).Str("opts", strings.Join(opts, ",")).Msg("mount volume to scan dir")
return Mount(fsInfo.Name, scanDir, fsInfo.FsType, opts)
}

func saninizeOptions(options []string) []string {
func sanitizeOptions(options []string) []string {
var sanitized []string
for _, opt := range options {
switch opt {
Expand Down

0 comments on commit 677ffae

Please sign in to comment.