Chris Lu
37af41fbfe
Shell: Added a helper function `isHelpRequest()` ( #7380 )
* Added a helper function `isHelpRequest()`
* also handles combined short flags like -lh or -hl
* Created handleHelpRequest() helper function
encapsulates both:
Checking for help flags
Printing the help message
* Limit to reasonable length (2-4 chars total) to avoid matching long options like -verbose
1 week ago
Chris Lu
4af182f880
Context cancellation during reading range reading large files ( #7093 )
* context cancellation during reading range reading large files
* address comments
* cancellation for fuse read
* fix cancellation
* pass in context for each function to avoid racing condition
* Update reader_at_test.go
* remove dead code
* Update weed/filer/reader_at.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/filechunk_group.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/filechunk_group.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* address comments
* Update weed/mount/weedfs_file_read.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_lseek.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_read.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/reader_at.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_lseek.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* test cancellation
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3 months ago
Aleksey Kosov
165af32d6b
added context to filer_client method calls ( #6808 )
Co-authored-by: akosov <a.kosov@kryptonite.ru>
5 months ago
chrislu
ec30a504ba
refactor
1 year ago
chrislu
701abbb9df
add IsResourceHeavy() to command interface
1 year ago
chrislu
70a4c98b00
refactor filer_pb.Entry and filer.Entry to use GetChunks()
for later locking on reading chunks
3 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
3 years ago
chrislu
85c1615b43
filer read empty file may cause OOM in some cases
fix https://github.com/chrislusf/seaweedfs/issues/2641
4 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.
4 years ago
Chris Lu
6bab20d862
cat entry content
4 years ago
Konstantin Lebedev
26a4f34a57
del checks
url err logging
stats chunk fetch
5 years ago
Konstantin Lebedev
03d1199d5f
Revert "revert PR #1903 avoid http error: superfluous response.WriteHeader"
This reverts commit ac71117e
5 years ago
Chris Lu
ac71117ee6
revert PR #1903 avoid http error: superfluous response.WriteHeader
5 years ago
Konstantin Lebedev
06da02739d
CheckAllChunkViews() for HEAD requests only
5 years ago
Chris Lu
eb7929a971
rename filer2 to filer
5 years ago
Chris Lu
e666aeece2
simplify parsing filer host and port
6 years ago
Chris Lu
d151185b7e
shell: desupport filer url in the arguments
6 years ago
Chris Lu
c0f0fdb3ba
refactoring
6 years ago
Chris Lu
ae2ee379c0
consistent 64bit size
6 years ago
Chris Lu
8645283a7b
fuse mount: avoid lookup nil entry
fix https://github.com/chrislusf/seaweedfs/issues/1221
6 years ago
Chris Lu
892e726eb9
avoid reusing context object
fix https://github.com/chrislusf/seaweedfs/issues/1182
6 years ago
Chris Lu
7d10fdf737
fix directory lookup nil
6 years ago
Chris Lu
72a64a5cf8
use the same context object in order to retry
6 years ago
Chris Lu
71d55ec5cb
adjust help message
6 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
6 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
6 years ago
Chris Lu
ede876cfdb
periodic scripts exeuction from leader master
7 years ago
Chris Lu
0c96cfdb2e
minor
7 years ago
Chris Lu
00b6f653fa
shell: add fs.cat
7 years ago