Chris Lu
c795183887
return node itself as directory handler
4 years ago
Chris Lu
055374a50b
FUSE: skip flushing if file is deleted
related to https://github.com/chrislusf/seaweedfs/issues/2110
4 years ago
Patrick Schmidt
77100754e6
Return artificial . and .. directories
4 years ago
Chris Lu
1737af480a
adjust logs
4 years ago
Chris Lu
55a8f57381
go fmt
4 years ago
Chris Lu
38f411219a
mount: skip local chunk cache if opened write only
4 years ago
Chris Lu
3a86d4dbfd
mount: fix directory invalidation
fix https://github.com/chrislusf/seaweedfs/issues/2038
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
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
0f64f5b9c8
mount: add readOnly option
fix https://github.com/chrislusf/seaweedfs/issues/1961
4 years ago
Chris Lu
69694a17be
reverting 7d57664c2d
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
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
be9c7c21ec
reduce possibility of nil file entry
4 years ago
Chris Lu
d475c89fcc
go fmt
4 years ago
Chris Lu
3a1d3d3413
mount: properly invalidate kernel node cache entry
fix https://github.com/chrislusf/seaweedfs/issues/1752
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
e439b65e38
fix test
4 years ago
Chris Lu
5a3386e39b
Revert "Revert "mount: fake support for socket/block/character/fifo devices""
This reverts commit 3d5cb7eb86
.
4 years ago
Chris Lu
67faa56920
Revert "Revert "mount: add more entry type""
This reverts commit 4085b79d38
.
4 years ago
Chris Lu
4085b79d38
Revert "mount: add more entry type"
This reverts commit d7d907be27
.
4 years ago
Chris Lu
3d5cb7eb86
Revert "mount: fake support for socket/block/character/fifo devices"
This reverts commit 61ef2d8658
.
4 years ago
Chris Lu
61ef2d8658
mount: fake support for socket/block/character/fifo devices
to pass pjdfstest. A distributed file system can not really support these things anyway.
4 years ago
Chris Lu
d7d907be27
mount: add more entry type
4 years ago
Chris Lu
a4063a5437
add stream list directory entries
4 years ago
Chris Lu
f002e668de
change limit to int64 in case of overflow
4 years ago
Chris Lu
e1423a83dd
mount: clear possible leftover entry data in memory
4 years ago
Chris Lu
4609644658
mount: remove files that may still are open
related to https://github.com/chrislusf/seaweedfs/issues/1581
4 years ago
Chris Lu
10f9f1cc26
handle mknod requests
4 years ago
Chris Lu
9b4f7fed14
mount: report filer IO error
related to https://github.com/chrislusf/seaweedfs/issues/1530
4 years ago
Chris Lu
b067853162
mount: ignore recursion error
fix https://github.com/chrislusf/seaweedfs/issues/1514
the host OS should manage recursive deletion.
4 years ago
Chris Lu
d77e3c96e9
FUSE: use the mount directory permissions
4 years ago