mount: complete fix for freebsd

fix https://github.com/seaweedfs/seaweedfs/issues/6645
This commit is contained in:
chrislu
2025-06-12 08:19:47 -07:00
parent e71d681fee
commit c79e73aa2a
6 changed files with 49 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
package command
func checkMountPointAvailable(dir string) bool {
return true
}

View File

@@ -1,5 +1,5 @@
//go:build !linux && !darwin
// +build !linux,!darwin
//go:build !linux && !darwin && !freebsd
// +build !linux,!darwin,!freebsd
package command

View File

@@ -1,12 +1,11 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd
package command
import (
"context"
"fmt"
"github.com/seaweedfs/seaweedfs/weed/util/version"
"net"
"net/http"
"os"
@@ -17,6 +16,8 @@ import (
"syscall"
"time"
"github.com/seaweedfs/seaweedfs/weed/util/version"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/mount"