Vitaliy Filippov
13117049f3
Fallback from BatchForgetOp to a series of ForgetInodeOp if unsupported ( #126 )
...
Co-authored-by: Vitaliy Filippov <vitalif@yourcmc.ru>
9 months ago
Doychin Atanasov
37d63df227
Add support for the FUSE_BATCH_FORGET operation ( #123 )
...
There are certain Kernel versions which do not send individual
Forget operations after they receive "not implemented" for Batch Forget.
One example is "5.4.0-110-generic" on Ubuntu 20.04. I am sure there are
plenty of others.
This leads to inode "leaks". Where reference counts are never decreased
and the inodes were left hanging around long after they are not needed
any more.
The best way to fix that was adding support for batch operations to the
lib. This way all users will be able to benefit from the batching
optimization.
Co-authored-by: Doychin Atanasov <doychin.atanasov@chaosgroup.com>
10 months ago
Michael Stapelberg
ae5da07e4c
remove naked returns across the code base ( #75 )
...
fixes #73
3 years ago
Ka-Hing Cheung
4ee1cf7f62
add support for fallocate ( #66 )
...
* Fallocate support
* use fallocate wrapper that works on darwin
3 years ago
Arran Walker
5ee7049312
replace imports of "golang.org/x/net/context" with "context"
5 years ago
Srdjan Rilak
1b4a34cc7b
Add CreateLink implementation
5 years ago
Ka-Hing Cheung
1ab97fb2eb
handle forget inline instead of in goroutine
...
when we are under memory pressure, or echo 3 > /proc/sys/vm/drop_caches,
kernel can send us many forget ops at the same time if we have lots of
inodes in memory. Running them all in goroutines can lead to even more
memory usage and eventually OOM.
6 years ago
Ka-Hing Cheung
cbeaa55087
SetXattr support
6 years ago
Ka-Hing Cheung
d20c4665c1
GetXattr/ListXattr implementation
6 years ago
Ka-Hing Cheung
8aade5c71f
RemoveXattr implementation
6 years ago
Aaron Jacobs
47638fa8c7
Added FileSystem support.
7 years ago
Aaron Jacobs
df671c90c2
Fixed FileSystem.StatFS support.
8 years ago
Aaron Jacobs
4d5341f6ce
Added FileSystem.StatFS.
8 years ago
Aaron Jacobs
b0d206254f
Fixed another dumb bug.
8 years ago
Aaron Jacobs
6d01ffa44f
Replaced AppendDirent with WriteDirent.
8 years ago
Aaron Jacobs
522995296e
Fixed package fuse.
8 years ago
Aaron Jacobs
ea210ae2bb
Fixed package fuseutil.
8 years ago
Aaron Jacobs
f0f62136a7
Killed the stale random delays feature.
8 years ago
Aaron Jacobs
8ba8c0bf24
Oops, forgot fileSystemServer.handleOp.
8 years ago
Aaron Jacobs
723fcb1d3e
Added FileSystem support.
8 years ago
Aaron Jacobs
e4cd605c76
Updated package fuseutil.
8 years ago
Aaron Jacobs
0f62458e21
Destroy when done.
8 years ago
Aaron Jacobs
630f40de94
NotImplementedFileSystem.Destroy
8 years ago
Aaron Jacobs
6fff9f3f20
Added FileSystem.Destroy.
8 years ago
Aaron Jacobs
5ae9856c29
Define that Server.ServeOps must wait for in-flights.
8 years ago
Aaron Jacobs
100c7af28a
Put a wait group in fileSystemServer.
8 years ago
Aaron Jacobs
b791d33db0
Fixed fileSystemServer.handleOp.
8 years ago
Aaron Jacobs
78b00c64d9
Removed RespondToOp.
8 years ago
Aaron Jacobs
1573b41ff3
Fixed NotImplementedFileSystem.
8 years ago
Aaron Jacobs
48571ab6cb
Updated the FileSystem interface.
8 years ago
Aaron Jacobs
05091dee19
Added file system support.
8 years ago
Aaron Jacobs
f71fe97d5e
Added file system support.
8 years ago
Aaron Jacobs
dd0d1163f8
Improved the flag name.
8 years ago
Aaron Jacobs
02d14a685e
Added a random delays feature for #8 .
8 years ago
Aaron Jacobs
0461ddac4f
Handle each op in its own goroutine.
8 years ago
Aaron Jacobs
4d06d8aef8
Updated NewFileSystemServer docs.
8 years ago
Aaron Jacobs
7ed1d0689d
Updated documentation in light of the investigation in issue #8 .
8 years ago
Aaron Jacobs
32c00cb130
Oops, totally screwed that up.
8 years ago
Aaron Jacobs
e2a8e77cdc
Replaced MountedFileSystem.Unmount with a free function.
8 years ago
Aaron Jacobs
c1a851403d
Added a RespondToOp helper.
8 years ago
Aaron Jacobs
6667a7f8f6
Fixed NotImplementedFileSystem.
8 years ago
Aaron Jacobs
93d1bc181f
Don't return error from FileSystem methods.
8 years ago
Aaron Jacobs
2c0b99bdce
Implemented NewFileSystemServer.
8 years ago
Aaron Jacobs
579e3f648e
Added NotImplementedFileSystem methods.
8 years ago
Aaron Jacobs
485f5d64fc
Declared NotImplementedFileSystem.
8 years ago
Aaron Jacobs
00809e98fe
Added a FileSystem interface and declared a function that transforms it.
8 years ago
Aaron Jacobs
ddee157432
Deleted NotImplementedFileSystem.
8 years ago
Aaron Jacobs
9b930cd8b5
Updated dirent.go.
8 years ago
Aaron Jacobs
d3cb0c2ba9
NotImplementedFileSystem.SyncFile
8 years ago
Aaron Jacobs
2fcd202d66
NotImplementedFileSystem.FlushFile
8 years ago