aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 807fefa38..280963c2c 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -79,6 +79,25 @@ func (v *Volume) Size() int64 {
return 0 // -1 causes integer overflow and the volume to become unwritable.
}
+func (v *Volume)IndexFileSize() uint64 {
+ return v.nm.IndexFileSize()
+}
+
+func (v *Volume)DataFileSize() uint64 {
+ return uint64(v.Size())
+}
+
+/**
+unix time in seconds
+ */
+func (v *Volume)LastModifiedTime() uint64 {
+ return v.lastModifiedTime
+}
+
+func (v *Volume)FileCount() uint {
+ return uint(v.nm.FileCount())
+}
+
// Close cleanly shuts down this volume
func (v *Volume) Close() {
v.dataFileAccessLock.Lock()