Some work on supporting Windows

This commit is contained in:
AlexSSD7 2023-08-28 11:35:57 +02:00
commit 2f1d4ae60d
9 changed files with 109 additions and 19 deletions

View file

@ -6,7 +6,6 @@ import (
"fmt"
"log/slog"
"os"
"path/filepath"
"strings"
"sync"
"syscall"
@ -174,7 +173,7 @@ func (fm *FileManager) Mount(devName string, mo MountOptions) error {
return fmt.Errorf("bad device name")
}
fullDevPath := filepath.Clean("/dev/" + devName)
fullDevPath := "/dev/" + devName
if mo.FSType == "" {
return fmt.Errorf("fs type is empty")