albertony
68bf6aa584
build: remove build constraint syntax for go 1.16 and older
2024-04-18 16:53:55 +02:00
Saleh Dindar
ef2ef8ef84
nfsmount: New mount command to provide mount mechanism on macOS without FUSE
...
Summary:
In cases where cmount is not available in macOS, we alias nfsmount to mount command and transparently start the NFS server and mount it to the target dir.
The NFS server is started on localhost on a random port so it is reasonably secure.
Test Plan:
```
go run rclone.go mount --http-url https://beta.rclone.org :http: nfs-test
```
Added mount tests:
```
go test ./cmd/nfsmount
```
2023-10-06 14:08:20 +01:00
albertony
555def2da7
build: add package comments to silence revive linter
2022-08-28 13:43:51 +02:00
Nick Craig-Wood
a947f298e6
cmount: remove cgo from windows build requirements since it builds without
2022-04-29 18:04:21 +01:00
Nick Craig-Wood
83b6b62c1b
build: disable cmount tests under macOS and the CI since they are locking up
...
This fixes #5951 and allows the macOS builds to run again
See #5960 for more info.
2022-01-27 17:33:04 +00:00
Ivan Andreev
24de896df2
build: apply gofmt from golang 1.17
2021-09-09 20:43:59 +03:00
Nick Craig-Wood
ce065614e2
Revert "mount2,cmount: skip unreliable tests #4171 "
...
The VFS is now reliable enough so that the mount tests don't fail.
This reverts commit 4808958f93
.
2020-06-30 12:01:36 +01:00
Nick Craig-Wood
4808958f93
mount2,cmount: skip unreliable tests #4171
2020-06-15 21:34:37 +01:00
Nick Craig-Wood
fd39cbc193
vfstests: move functional tests from mountlib and make them work with VFS
...
The tests are now run for the mount commands and for the plain VFS.
This makes the tests much easier to debug when running with a VFS than
through a mount.
2020-04-20 10:42:33 +01: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
06e3fa3aba
mounttest: reduce duplicated code and improve test output #2154
...
The written out list of tests was replaced with a nested test for
mount and cmount. The tests for each VFS cache mode were also replaced
with nested tests which makes the output and the code much cleaner.
2018-04-08 15:04:14 +01:00
Nick Craig-Wood
7713acf23d
mount: skip failing test TestFileModTimeWithOpenWriters on Windows
2018-03-09 23:15:38 +00:00
Nick Craig-Wood
2b666187a6
cmount: disable tests on windows + race detector
...
These either hang or produce incorrect results for reasons I haven't
worked out yet.
2017-11-20 12:46:24 +00:00
Nick Craig-Wood
eb3415db50
cmount: enable more tests for Windows
2017-11-20 12:46:23 +00:00
Nick Craig-Wood
dcce65b2b3
mount/cmount: factor duplicated code into mountlib
2017-06-19 14:36:51 +01:00
Nick Craig-Wood
8f54dc06a2
Use build tags to control when and where cmount is built
2017-05-19 17:08:04 +01:00
Nick Craig-Wood
ecedcd0e7f
cmount: stop failing tests on Windows
2017-05-15 17:40:44 +01:00
Nick Craig-Wood
bc9856b570
Forward port 930ff266f2
to cmount branch
...
compare checksums on upload/download via FUSE
2017-05-15 16:56:44 +01:00
Nick Craig-Wood
e1516e0159
Forward port 58a82cd578
into cmount branch
...
allow the fuse directory cached to be cleaned manually
2017-05-15 16:56:43 +01:00
Nick Craig-Wood
ee1111e4c9
cmount: a new mount option based on cgofuse.
...
This with the aid of WinFSP should work on Windows.
Unfinished bits
* 1 test doesn't pass
* docs
* build
2017-05-15 16:56:43 +01:00