1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00
rclone/vfs
Nick Craig-Wood 4ed4483bbc vfs: fix fatal error: sync: unlock of unlocked mutex in panics
Before this change a panic could be overwritten with the message

    fatal error: sync: unlock of unlocked mutex

This was because we temporarily unlocked the mutex, but failed to lock
it again if there was a panic.

This is code is never the cause of an error but it masks the
underlying error by overwriting the panic cause.

See: https://forum.rclone.org/t/serve-webdav-is-crashing-fatal-error-sync-unlock-of-unlocked-mutex/46300
2024-06-24 09:30:59 +01:00
..
test_vfs build: remove random.Seed since random generator is seeded automatically in go1.20 2024-01-15 16:22:07 +00:00
vfscache vfs: fix fatal error: sync: unlock of unlocked mutex in panics 2024-06-24 09:30:59 +01:00
vfscommon vfs: fix unicode normalization on macOS - fixes #7072 2024-03-06 16:12:13 +00:00
vfsflags build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
vfstest build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
dir_handle_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
dir_handle.go Spelling fixes 2020-10-14 15:21:31 +01:00
dir_test.go vfs: fix renaming a directory 2024-06-11 12:09:19 +01:00
dir.go vfs: fix renaming a directory 2024-06-11 12:09:19 +01:00
errors_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
errors.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00
file_test.go mockfs: make it so it can be registered as an Fs 2023-04-28 14:31:05 +01:00
file.go vfs: use atomic types 2023-08-22 12:52:13 +01:00
make_open_tests.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
open_test.go vfs: bring DO NOT EDIT comments in line with "go help generate" 2020-04-30 12:24:44 +01:00
rc_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
rc.go vfs: add vfs/stats remote control to show statistics - fixes #5816 2021-11-23 18:00:21 +00:00
read_test.go vfs: [bugfix] Implement Name() method in WriteFileHandle and ReadFileHandle 2023-10-06 14:08:20 +01:00
read_write_test.go vfs: fix stale data when using --vfs-cache-mode full 2024-01-15 11:12:59 +00:00
read_write.go vfs: Add go-billy dependency and make sure vfs.Handle implements billy.File 2023-10-06 14:08:20 +01:00
read.go Improve error messages when objects have been corrupted on transfer - fixes #5268 2024-03-23 12:35:35 +00:00
vfs_case_test.go vfs: fix unicode normalization on macOS - fixes #7072 2024-03-06 16:12:13 +00:00
vfs_test.go chore: fix function name in comment 2024-05-15 19:30:17 +01:00
vfs.go docs: ensure empty line between text and a following heading 2024-04-05 21:39:44 +02:00
vfs.md vfs: fix unicode normalization on macOS - fixes #7072 2024-03-06 16:12:13 +00:00
vfstest_test.go chore: fix function name in comment 2024-05-15 19:30:17 +01:00
vstate_string.go vfs: fix virtual entries causing deleted files to still appear 2020-11-10 16:47:25 +00:00
write_test.go vfs: [bugfix] Implement Name() method in WriteFileHandle and ReadFileHandle 2023-10-06 14:08:20 +01:00
write.go vfs: [bugfix] Implement Name() method in WriteFileHandle and ReadFileHandle 2023-10-06 14:08:20 +01:00