aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/dirty_pages.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filesys/dirty_pages.go')
-rw-r--r--weed/filesys/dirty_pages.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/filesys/dirty_pages.go b/weed/filesys/dirty_pages.go
new file mode 100644
index 000000000..c056a09ba
--- /dev/null
+++ b/weed/filesys/dirty_pages.go
@@ -0,0 +1,8 @@
+package filesys
+
+type DirtyPages interface {
+ AddPage(offset int64, data []byte)
+ FlushData() error
+ ReadDirtyDataAt(data []byte, startOffset int64) (maxStop int64)
+ GetStorageOptions() (collection, replication string)
+}