rclone/vfs
Nick Craig-Wood 54deb01f00 vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC
Before this change Open("name", os.O_RDONLY|os.O_TRUNC) would have
truncated the file.  This is what Linux does, but is counterintuitive.
POSIX states this is undefined, so return an error in this case
instead.  This preserves the invariant O_RDONLY => file is not
changed.
2018-02-26 17:04:27 +00:00
..
vfsflags Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
cache_test.go vfs: clean path names before using them in the cache 2018-02-26 16:59:14 +00:00
cache.go vfs: clean path names before using them in the cache 2018-02-26 16:59:14 +00:00
dir_handle_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
dir_handle.go vfs: factor duplicated Open code into vfs from mount/cmount 2017-11-03 13:00:00 +00:00
dir_test.go vfs: add flags parameter to Dir.Create 2018-01-19 13:18:40 +00:00
dir.go vfs: add flags parameter to Dir.Create 2018-01-19 13:18:40 +00:00
errors_new.go vfs: add ECLOSED and tidy errors 2017-11-04 10:24:10 +00:00
errors_old.go vfs: add ECLOSED and tidy errors 2017-11-04 10:24:10 +00:00
errors_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
errors.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
file_test.go vfs: make specialized file Open functions private 2018-01-19 11:46:01 +00:00
file.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
help.go vfs: fix docs - fixes #2067 2018-02-12 11:29:32 +00:00
make_open_tests.go vfs: make sure all 96 combinations of flags for Open work 2017-11-28 20:39:23 +00:00
open_test.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
read_test.go vfs: add ECLOSED and tidy errors 2017-11-04 10:24:10 +00:00
read_write_test.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
read_write.go vfs: don't open the file when using a RW handle for a null Seek 2018-02-22 17:28:21 +00:00
read.go vfs: make -ve sized files appear as 0 size. #320 2018-01-31 16:22:05 +00:00
vfs_test.go Move all backends into backend directory 2018-01-12 17:07:38 +00:00
vfs.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
write_test.go vfs: write 0 bytes when flushing unwritten handles to avoid race conditions in FUSE - fixes #1181 2018-02-11 17:59:13 +00:00
write.go vfs: fix race between multiple RWFileHandle (#2052) 2018-02-18 14:12:26 +01:00