Bladeren bron

Fixed disk capacitor behavor on smbfs

Toby Chui 3 jaren geleden
bovenliggende
commit
ddc7f23486
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      mod/disk/diskcapacity/diskcapacity.go

+ 2 - 1
mod/disk/diskcapacity/diskcapacity.go

@@ -7,6 +7,7 @@ import (
 
 	"imuslab.com/arozos/mod/common"
 	"imuslab.com/arozos/mod/disk/diskcapacity/dftool"
+	"imuslab.com/arozos/mod/filesystem/arozfs"
 	"imuslab.com/arozos/mod/user"
 )
 
@@ -92,7 +93,7 @@ func (cr *Resolver) ResolveCapacityInfo(username string, vpath string) (*Capacit
 
 	realpath = filepath.ToSlash(filepath.Clean(realpath))
 
-	if common.FileExists(realpath) && !fsh.RequireBuffer {
+	if common.FileExists(realpath) && !arozfs.IsNetworkDrive(fsh.Filesystem) {
 		//This is a local disk
 		capinfo, err := dftool.GetCapacityInfoFromPath(realpath)
 		if err != nil {