aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_create_linux.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-11 14:19:44 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-11 14:19:44 -0700
commitdf9d538044c035edde5441972dffdc7662fe753b (patch)
treef12fcc3150753942a04840f2ec9c155076e2aa24 /weed/storage/volume_create_linux.go
parentd7f3acb2c056534f29950f3586d804ec274349b2 (diff)
downloadseaweedfs-df9d538044c035edde5441972dffdc7662fe753b.tar.xz
seaweedfs-df9d538044c035edde5441972dffdc7662fe753b.zip
rename function
Diffstat (limited to 'weed/storage/volume_create_linux.go')
-rw-r--r--weed/storage/volume_create_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_create_linux.go b/weed/storage/volume_create_linux.go
index ee599ac32..a854c531a 100644
--- a/weed/storage/volume_create_linux.go
+++ b/weed/storage/volume_create_linux.go
@@ -10,7 +10,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/storage/backend"
)
-func createVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32) (backend.BackendStorageFile, error) {
+func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32) (backend.BackendStorageFile, error) {
file, e := os.OpenFile(fileName, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if e != nil {
return nil, e