Просмотр исходного кода

lib/model: Some platforms do not support usage checks (fixes #4321)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4322
Audrius Butkevicius 8 лет назад
Родитель
Сommit
a69ba18f62
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      lib/model/model.go

+ 0 - 4
lib/model/model.go

@@ -2302,10 +2302,6 @@ func (m *Model) checkFreeSpace(req config.Size, fs fs.Filesystem) error {
 	}
 
 	usage, err := fs.Usage(".")
-	if err != nil {
-		return fmt.Errorf("failed to check available storage space")
-	}
-
 	if req.Percentage() {
 		freePct := (float64(usage.Free) / float64(usage.Total)) * 100
 		if err == nil && freePct < val {