aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/fusefrontend/file.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index be15280..f765eae 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -132,8 +132,6 @@ func (f *file) createHeader() (fileID []byte, err error) {
return h.ID, err
}
-var oversizedReadWarn sync.Once
-
// doRead - read "length" plaintext bytes from plaintext offset "off" and append
// to "dst".
// Arguments "length" and "off" do not have to be block-aligned.
@@ -144,16 +142,6 @@ var oversizedReadWarn sync.Once
// Called by Read() for normal reading,
// by Write() and Truncate() for Read-Modify-Write
func (f *file) doRead(dst []byte, off uint64, length uint64) ([]byte, fuse.Status) {
- // Our byte cache pools are sized acc. to MAX_KERNEL_WRITE, but the
- // running kernel may have a higher limit set. Clamp to what we can
- // handle.
- if length > fuse.MAX_KERNEL_WRITE {
- oversizedReadWarn.Do(func() {
- tlog.Warn.Printf("doRead: truncating oversized read: %d to %d bytes",
- length, fuse.MAX_KERNEL_WRITE)
- })
- length = fuse.MAX_KERNEL_WRITE
- }
// Make sure we have the file ID.
f.fileTableEntry.HeaderLock.RLock()
if f.fileTableEntry.ID == nil {