mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 22:32:44 +08:00
vfs: fix typos found by codespell
This commit is contained in:
parent
55a12bd639
commit
9ee1b21ec2
|
@ -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.
|
||||
//
|
||||
|
|
|
@ -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 me
|
||||
c.cleanerKicked = false
|
||||
c.kickerMu.Unlock()
|
||||
}
|
||||
|
|
|
@ -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 removal
|
||||
item.info.Dirty = false
|
||||
err = 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
|
||||
}
|
||||
|
|
|
@ -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 range
|
||||
func (opt *Options) Init() {
|
||||
// Mask the permissions with the umask
|
||||
opt.DirPerms &= ^os.FileMode(opt.Umask)
|
||||
|
|
Loading…
Reference in New Issue
Block a user