Nick Craig-Wood
0272a7f405
mount: change interface of mount commands to take mount options
...
This is in preparation of being able to pass mount options to the rc
command "mount/mount"
2020-07-24 10:48:51 +01:00
Nick Craig-Wood
e1d34ef427
mount: factor Mount into mountlib and tidy signal handling
...
This factors common code from mount, cmount and mount2 into mountlib.
It also uses atexit for unregistering the mount.
2020-07-23 13:08:38 +01:00
Nick Craig-Wood
2871268505
mount: change interface of mount commands to take VFS
...
This is in preparation of being able to pass options to the rc command
"mount/mount"
2020-07-23 12:30:41 +01: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
Martin Michlmayr
4aee962233
doc: fix typos throughout docs and code
2020-05-20 15:54:51 +01:00
Chaitanya
5f168b3b96
rc: add mount/mount command
2020-05-14 16:38:37 +00:00
Nick Craig-Wood
6ca7198f57
mount: fix disappearing cwd problem - fixes #4104
...
Before this change, the current working directory could disappear
according to the Linux kernel.
This was caused by mount returning different nodes with the same
information in.
This change uses vfs.Node.SetSys to cache the information so we always
return the same node.
2020-05-04 11:38:07 +01:00
Nick Craig-Wood
3f654dac37
mount: map more rclone errors into file systems errors
...
This improves the error reporting, in particular for
fs.ErrorPermissionDenied which was being reported as an IO error.
2020-04-21 16:31:43 +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
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
2b268f9724
build: fixup formatting after go1.14 go fmt changes
2020-02-28 16:58:33 +00:00
Nick Craig-Wood
ec1271818f
mount2: hide mount2 command for the moment
2020-02-11 14:28:13 +00:00
Nick Craig-Wood
8318020387
Implement mount2 with go-fuse
...
This passes the tests and works efficiently with the non sequential vfs ReadAt fix.
2020-02-11 14:28:13 +00:00