"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmount: Statfs: reduce max size of volume for Windows
Nick Craig-Wood0c055a121588
diff --git a/cmd/cmount/fs.go b/cmd/cmount/fs.goindex 267d7a093..a3203ed4a 100644--- a/cmd/cmount/fs.go+++ b/cmd/cmount/fs.go@@ -6,6 +6,7 @@ package cmountimport ("os""path"+ "runtime""sync""time"@@ -312,11 +313,13 @@ func (fsys *FS) Releasedir(path string, fh uint64) (errc int) {}// Statfs reads overall stats on the filessystem-// FIXME doesn't seem to be ever calledfunc (fsys *FS) Statfs(path string, stat *fuse.Statfs_t) (errc int) {defer fs.Trace(path, "")("stat=%+v, errc=%d", stat, &errc)const blockSize = 4096- const fsBlocks = (1 << 50) / blockSize+ fsBlocks := uint64(1 << 50)+ if runtime.GOOS == "windows" {+ fsBlocks = (1 << 43) - 1+ }stat.Blocks = fsBlocks // Total data blocks in file system.stat.Bfree = fsBlocks // Free blocks in file system.stat.Bavail = fsBlocks // Free blocks in file system if you're not root.