Nick Craig-Wood
1bd3365868
vfs: fix TestVFSStatfs with known total, used and unknown free
2020-05-25 16:46:56 +01:00
Nick Craig-Wood
86eaf43b00
vfs: fix tests for Statfs when running on backends with unknowns
...
This was broken in da41db4712
2020-04-22 18:14:03 +01:00
Nick Craig-Wood
eed9c5738d
vfs: factor the vfs cache into its own package
2020-04-20 10:42:33 +01:00
Nick Craig-Wood
da41db4712
vfs,mount,cmount: report 1PB free for unknown disk sizes
...
Factor the logic into the VFS layer so we don't have to duplicate it
into mount and cmount.
See: https://forum.rclone.org/t/rclone-mount-question/15454/
2020-04-11 13:31:10 +01:00
Lars Lehtonen
4e1a511f88
vfs: explicitly ignore unused variables
2020-02-12 11:20:54 +00:00
Nick Craig-Wood
57d5de6fba
build: fix up package paths after repo move
...
git grep -l github.com/ncw/rclone | xargs -d'\n' perl -i~ -lpe 's|github.com/ncw/rclone|github.com/rclone/rclone|g'
goimports -w `find . -name \*.go`
2019-07-28 18:47:38 +01:00
Nick Craig-Wood
9ed81ac451
vfs: fix tests for backends which can't upload 0 length files
2019-06-30 18:35:01 +01:00
Aleksandar Jankovic
f78cd1e043
Add context propagation to rclone
...
- Change rclone/fs interfaces to accept context.Context
- Update interface implementations to use context.Context
- Change top level usage to propagate context to lover level functions
Context propagation is needed for stopping transfers and passing other
request-scoped values.
2019-06-19 11:59:46 +01:00
Nick Craig-Wood
ac7e1dbf62
test_all: add the vfs tests to the integration tests
...
Fix failing tests for some remotes
2019-03-17 14:56:17 +00:00
Nick Craig-Wood
b353c730d8
vfs: make tests work on remotes which don't support About
2019-02-28 14:05:21 +00:00
Nick Craig-Wood
7ee7bc87ae
vfs: fix tests after --dir-perms changes
...
This was introduced in 554ee0d963
2019-01-09 09:49:34 +00:00
Nick Craig-Wood
cb5bd47e61
build: fix errors spotted by ineffassign linter
...
These were mostly caused by shadowing err and a good fraction of them
will have caused errors not to be propagated properly.
2018-05-05 17:32:41 +01:00
Nick Craig-Wood
2b855751fc
vfs,mount,cmount: use About to return the correct disk total/used/free
...
Disks total, used, free now shows correctly for mount and cmount (eg
`df` for Unix or in the Windows explorer).
2018-04-18 18:27:34 +01:00
Nick Craig-Wood
e5be471ce0
Use io.SeekStart/End/Current constants now for go1.7+ #2154
2018-04-07 11:42:36 +01:00
Nick Craig-Wood
b8b620f5c2
Move all backends into backend directory
2018-01-12 17:07:38 +00:00
Nick Craig-Wood
e18122e88b
vfs: add tests and subsequent fixes
...
* Tests for VFS layer
* Small fixes found during testing
* Fix Close, Flush and Release behaviour for ReadFileHandle and WriteFileHandle
* Fix nil object bugs on File
2017-11-04 10:24:10 +00:00