"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
vfs: fix typos found by codespell
Dimitri Papadopoulos9ee1b21ec284
diff --git a/vfs/vfs.go b/vfs/vfs.goindex 7e9b0043f..a450c85eb 100644--- a/vfs/vfs.go+++ b/vfs/vfs.go@@ -13,7 +13,7 @@// # It also includes directory caching//// The vfs package returns Error values to signal precisely which-// error conditions have ocurred. It may also return general errors+// error conditions have occurred. It may also return general errors// it receives. It tries to use os Error values (e.g. os.ErrExist)// where possible.//diff --git a/vfs/vfscache/cache.go b/vfs/vfscache/cache.goindex 164950388..20c9593c1 100644--- a/vfs/vfscache/cache.go+++ b/vfs/vfscache/cache.go@@ -645,7 +645,7 @@ func (c *Cache) purgeClean(quota int64) {}}- // Resest outOfSpace without checking whether we have reduced cache space below the quota.+ // Reset outOfSpace without checking whether we have reduced cache space below the quota.// This allows some files to reduce their pendingAccesses count to allow them to be reset// in the next iteration of the purge cleaner loop.@@ -755,7 +755,7 @@ func (c *Cache) clean(kicked bool) {// Was kicked?if kicked {c.kickerMu.Lock() // Make sure this is called with cache mutex unlocked- // Reenable io threads to kick me+ // Re-enable io threads to kick mec.cleanerKicked = falsec.kickerMu.Unlock()}diff --git a/vfs/vfscache/item.go b/vfs/vfscache/item.goindex e1575eca3..c7943d4af 100644--- a/vfs/vfscache/item.go+++ b/vfs/vfscache/item.go@@ -618,7 +618,7 @@ func (item *Item) _store(ctx context.Context, storeFn StoreFn) (err error) {item.mu.Lock()}- // Show item is clean and is elegible for cache removal+ // Show item is clean and is eligible for cache removalitem.info.Dirty = falseerr = item._save()if err != nil {@@ -966,7 +966,7 @@ func (item *Item) Reset() (rr ResetResult, spaceFreed int64, err error) {}/* Do not need to reset an empty cache file unless it was being reset and the reset failed.- Some thread(s) may be waiting on the reset's succesful completion in that case. */+ Some thread(s) may be waiting on the reset's successful completion in that case. */if item.info.Rs.Size() == 0 && !item.beingReset {return SkippedEmpty, 0, nil}diff --git a/vfs/vfscommon/options.go b/vfs/vfscommon/options.goindex c3631859a..a5295c4ee 100644--- a/vfs/vfscommon/options.go+++ b/vfs/vfscommon/options.go@@ -65,7 +65,7 @@ var DefaultOpt = Options{DiskSpaceTotalSize: -1,}-// Init the options, making sure everything is withing range+// Init the options, making sure everything is within rangefunc (opt *Options) Init() {// Mask the permissions with the umaskopt.DirPerms &= ^os.FileMode(opt.Umask)