Chris Lu
93e84a12f2
refactor
4 years ago
Chris Lu
8f8738867f
add retry to assign volume
fix https://github.com/chrislusf/seaweedfs/issues/2056
4 years ago
Chris Lu
55a8f57381
go fmt
4 years ago
Chris Lu
5753749c90
remove verbose logs
4 years ago
Chris Lu
38f411219a
mount: skip local chunk cache if opened write only
4 years ago
Chris Lu
2e56407c6b
fix visited checking
4 years ago
Chris Lu
3a86d4dbfd
mount: fix directory invalidation
fix https://github.com/chrislusf/seaweedfs/issues/2038
4 years ago
Chris Lu
11c405fc85
ensure file handles are released
4 years ago
Chris Lu
83cf94ad2d
delay new file creation unless file is opened exclusively
4 years ago
Chris Lu
d1c813c470
let the fuse library manage directory id
otherwise, on mac, during large directory deletion, if some ReaDirAll happens, the lib seems confused about the directories, and some child directories are not deleted.
4 years ago
Chris Lu
372872ebbf
set root node inode number
4 years ago
Chris Lu
e332da4837
set inode value
4 years ago
Chris Lu
6cbd786db9
correctly runs git clone
4 years ago
Chris Lu
d9a2a7f1c4
WIP
no memory issue
if some directory is removed, it may have this error
$ rm -Rf ~/tmp/m2/s1
rm: fts_read: Device not configured
4 years ago
Chris Lu
54410ca955
cleaner way to set readonly
4 years ago
Chris Lu
c83ab91e2e
remove unused variable
4 years ago
Chris Lu
3074e9b428
ensure consistent inode value
4 years ago
Chris Lu
16c0304416
ensure to delete on filer also
4 years ago
Chris Lu
217e0f9066
mount: remove folder recursively
4 years ago
Chris Lu
3e669e6d7b
mostly refactoring, add some error handling
4 years ago
Chris Lu
07f712c83f
fix typo
4 years ago
Chris Lu
36c79de3f4
fuse mount: dir ReadDirAll avoid extra conversion to filer_pb.Entry
4 years ago
Chris Lu
e41766feb6
fuse mount: dir lookup avoids extra conversion to filer_pb.Entry object
4 years ago
Chris Lu
1adc8f86ea
lighten up File object
file.entry only exists when file.isOpen
4 years ago
Chris Lu
c04b7e106f
mount: remove entry from Dir object
4 years ago
Chris Lu
3f3268cd1b
go fmt
4 years ago
Chris Lu
ca0f07a188
move file reader, entryViewCache to file handle
reduce file object size
4 years ago
Chris Lu
f62c153274
go fmt
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
bdf2ddddfd
revert to same implementation as before
This reverts commit 7e8edc3c4a
.
4 years ago
Chris Lu
7e8edc3c4a
refactoring
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
df461402cc
ensure entry attribute is not nill
fix https://github.com/chrislusf/seaweedfs/issues/1926
4 years ago
Chris Lu
69694a17be
reverting 7d57664c2d
4 years ago
Chris Lu
c00dd5e62e
report error if entry not found
4 years ago
Chris Lu
22a07a12d2
[mount] [regression] `filer.path` option results in empty mount in 2.32
fix https://github.com/chrislusf/seaweedfs/issues/1906
4 years ago
Chris Lu
35d939a1d2
go fmt
4 years ago
Chris Lu
5fbcaaf37a
fullpath() test is not needed
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
bcf32591b7
reduce possibility of nil entry
4 years ago
Chris Lu
be9c7c21ec
reduce possibility of nil file entry
4 years ago
Chris Lu
02e146f3e1
return err
4 years ago
Chris Lu
f8446b42ab
this can compile now!!!
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