Chris Lu
055374a50b
FUSE: skip flushing if file is deleted
related to https://github.com/chrislusf/seaweedfs/issues/2110
4 years ago
Chris Lu
1737af480a
adjust logs
4 years ago
Chris Lu
d06ecc2649
working properly
4 years ago
Chris Lu
55d547afec
switch back to in memory uploading for now
4 years ago
Chris Lu
f4cf30b497
mount: write to tmp file before uploading
4 years ago
Chris Lu
59ace54925
refactor
4 years ago
Chris Lu
50be19d23e
refactor
4 years ago
Chris Lu
55e060cf61
refactor
4 years ago
Chris Lu
735e65be17
refactor
4 years ago
Chris Lu
93e84a12f2
refactor
4 years ago
Chris Lu
38f411219a
mount: skip local chunk cache if opened write only
4 years ago
Chris Lu
11c405fc85
ensure file handles are released
4 years ago
Chris Lu
6cbd786db9
correctly runs git clone
4 years ago
Chris Lu
54410ca955
cleaner way to set readonly
4 years ago
Chris Lu
1adc8f86ea
lighten up File object
file.entry only exists when file.isOpen
4 years ago
Chris Lu
ca0f07a188
move file reader, entryViewCache to file handle
reduce file object size
4 years ago
Chris Lu
93f4146ffa
properly release the view cache
4 years ago
Chris Lu
6deb647a8f
mount: fix possible memory leak
if many files are read repeatedly, their metadata are accumulated in memory. This fix cleared the metadata after the file is read.
4 years ago
Chris Lu
0f64f5b9c8
mount: add readOnly option
fix https://github.com/chrislusf/seaweedfs/issues/1961
4 years ago
Chris Lu
3cbc40fa48
avoid creating multiple reader
4 years ago
Chris Lu
288369cfc7
mount: release resources when Forget() is called
address https://github.com/chrislusf/seaweedfs/issues/1929
4 years ago
Chris Lu
69694a17be
reverting 7d57664c2d
4 years ago
Chris Lu
7d57664c2d
mount: internals switch to filer.Entry instead of protobuf
4 years ago
Chris Lu
aba47fd9e8
reduce repeated calls to dir.FullPath()
4 years ago
Chris Lu
5ba4b479f8
properly lock file.entry object
fix https://github.com/chrislusf/seaweedfs/issues/1882
4 years ago
Chris Lu
712b3e9e53
mount: release need to avoid nil reader
fix https://github.com/chrislusf/seaweedfs/issues/1803
4 years ago
Chris Lu
0604afcda7
mount: remove unnecessary flush on release
4 years ago
Chris Lu
cf252fc0cd
mount: report error when Flush()
The error in Release() is not working.
See https://github.com/jaderhs/libfuse/blob/master/FAQ
related to https://github.com/chrislusf/seaweedfs/issues/1765
4 years ago
Chris Lu
00707ec00f
mount: outsideContainerClusterMode proxy through filer
Running mount outside of the cluster would not need to expose all the volume servers to outside of the cluster. The chunk read and write will go through the filer.
4 years ago
Chris Lu
9bcb28a3ea
avoid possible nil reader
fix https://github.com/chrislusf/seaweedfs/issues/1754
4 years ago
Chris Lu
6ca10725b8
Revert "mount: when outside cluster network, use filer as proxy to access volume servers"
This reverts commit 096e088d7b
.
4 years ago
Chris Lu
096e088d7b
mount: when outside cluster network, use filer as proxy to access volume servers
4 years ago
Chris Lu
20ef3bb8d4
mount: use direct_io to avoid OS page cache
fix https://github.com/chrislusf/seaweedfs/issues/1752
4 years ago
Chris Lu
7119e7b491
mount: ensure reading from dirty pages
4 years ago
Chris Lu
4211601eab
set file handle reader to nil
4 years ago
Chris Lu
8e78187a97
add back last read chunk cache to reader and properly close the reader
4 years ago
Chris Lu
f4abd01adf
filer: cache small file to filer store
4 years ago
Chris Lu
06ee199ef3
ensure entryViewCache is in sync with the chunks
4 years ago
Chris Lu
7d5db73d98
go fmt
4 years ago
Chris Lu
a9662d44ac
avoid closing chunkSaveErrChan too early
4 years ago
Chris Lu
e219c57849
passing full path when assign volume locations
4 years ago
Chris Lu
da36abf033
go fmt
4 years ago
Chris Lu
71624858af
avoid reusing cached []byte
this logic is just to ensure 100% correct.
fuse message, data+message hearder > 512 will not be cached.
4 years ago
Chris Lu
3bf0116de1
mount: less channel waiting
4 years ago
Chris Lu
ad652ffb97
avoid close closed channel
4 years ago
Chris Lu
20442dc1bc
avoid extra data copying
4 years ago
Chris Lu
c0ab458671
report nil instead of EOF for empty files
related to https://github.com/chrislusf/seaweedfs/issues/1541
4 years ago
Chris Lu
09bab17aff
mount: avoid "send on closed channel"
4 years ago
Chris Lu
d598c47136
log errors
4 years ago
Chris Lu
5039aff310
release the goroutine to read errors
4 years ago