Commit 745498b1 authored by Aaron Jacobs's avatar Aaron Jacobs

cachingFS.ReadFile

parent a95b1fb2
......@@ -15,7 +15,9 @@
package cachingfs
import (
"crypto/rand"
"fmt"
"io"
"os"
"time"
......@@ -350,3 +352,10 @@ func (fs *cachingFS) OpenFile(
op *fuseops.OpenFileOp) (err error) {
return
}
func (fs *cachingFS) ReadFile(
ctx context.Context,
op *fuseops.ReadFileOp) (err error) {
op.BytesRead, err = io.ReadFull(rand.Reader, op.Dst)
return
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment