chrislu
fec8428fd8
POSIX: different inode for same named different file types
3 years ago
chrislu
cd1ad88f30
POSIX: check name is too long ENAMETOOLONG
3 years ago
chrislu
2dcb8cb93b
POSIX: ensure file and directory inodes are different
this is just an in memory representation.
POSIX wants different inode numbers for the same named file or directory.
3 years ago
chrislu
b8fbf19e9a
mount: rename follow POSIX
3 years ago
chrislu
cbc055dc2b
mount: file fsync
fix https://github.com/chrislusf/seaweedfs/issues/2561
3 years ago
chrislu
3df8f96117
avoid changing inode
3 years ago
chrislu
67b0645808
mount: need to change entry name after renaming
3 years ago
chrislu
9f9ef1340c
use streaming mode for long poll grpc calls
streaming mode would create separate grpc connections for each call.
this is to ensure the long poll connections are properly closed.
3 years ago
liubaojiang
c7abc34dbb
rename operation returns the correct old parent path
3 years ago
Chris Lu
0c8dea9de8
go fmt
3 years ago
Chris Lu
cca62fdb30
mount: streaming renaming folders
3 years ago
Chris Lu
93bb7869b8
Revert "mount: fix renaming a deep directory with unvisited directories"
This reverts commit 0ccdb937bb
.
3 years ago
Chris Lu
0ccdb937bb
mount: fix renaming a deep directory with unvisited directories
3 years ago
Chris Lu
7359193e97
go fmt
3 years ago
Chris Lu
fa0dab6029
mount: rename also recursively move file handles
related to https://github.com/chrislusf/seaweedfs/issues/2169
4 years ago
Chris Lu
215b169562
mount: recursively rename locally
4 years ago
Chris Lu
789465d99e
set renamed item to new directory
related to https://github.com/chrislusf/seaweedfs/issues/2064
4 years ago
Chris Lu
ceb620a30a
directory rename: change directory name after renaming
fix https://github.com/chrislusf/seaweedfs/issues/2068
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
0f64f5b9c8
mount: add readOnly option
fix https://github.com/chrislusf/seaweedfs/issues/1961
4 years ago
Chris Lu
3fedfec1e7
check cross device rename error
4 years ago
Chris Lu
4a1fe4b8e2
add error logs
4 years ago
Chris Lu
daf0a449f7
properly cancel context for streaming grpc
4 years ago
Chris Lu
a7f669044e
rename also applies to open file handle
4 years ago
Chris Lu
090612492c
fix compilation
4 years ago
Chris Lu
d43129d27f
add back handles lock
4 years ago
Chris Lu
e74dc4e4bc
add back fs node cache for renaming
4 years ago
Chris Lu
5788f1f6bf
remove fsnode cache
fix https://github.com/chrislusf/seaweedfs/issues/1400
4 years ago
Chris Lu
6962ca48d3
fix compilation
4 years ago
Chris Lu
3bbac0820b
FUSE: faster rename implementation
4 years ago
Chris Lu
42a338d7b0
FUSE mount: clean up file handles during renaming
resolve dir rename when file is still open. Need to clean the file handles as soon as possible.
These can happen out of order:
file rename, then file release
file release, then file rename
5 years ago
Chris Lu
95a1860d65
remove empty calls for list cache
5 years ago
Chris Lu
1bb8cae65d
reverting and working
5 years ago
Chris Lu
628b27ef3b
purge old cache implementation
5 years ago
Chris Lu
2f5ed29c37
clean up
5 years ago
Chris Lu
7f0d87b206
tree structured fs cache
FsCache for FsNode, wrapping fs.Node
5 years ago
Chris Lu
2e4fadd10a
fix fscache move
5 years ago
Chris Lu
c0f0fdb3ba
refactoring
5 years ago
Chris Lu
bda13ed593
commented prints
5 years ago
Chris Lu
74e23e8d64
FUSE mount: rename correctly across folders
5 years ago
Chris Lu
892e726eb9
avoid reusing context object
fix https://github.com/chrislusf/seaweedfs/issues/1182
5 years ago
Chris Lu
72a64a5cf8
use the same context object in order to retry
5 years ago
Chris Lu
09f4ceef3a
mount: reuse previous file node
5 years ago
Chris Lu
a990ef2106
mount: fix problems found in issue 1182
fix https://github.com/chrislusf/seaweedfs/issues/1182
always use the non-duplicated fs.Node
Forget() the fs.Node
Rename will also use the right fs.Node
Avoid using the same file handle for the same file
5 years ago
Chris Lu
1b0bfbaf59
refactoring
5 years ago
Chris Lu
2f15e93466
mount: rename also clear the cache
fix https://github.com/chrislusf/seaweedfs/issues/1182
5 years ago
Chris Lu
061a61e018
logs
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago