aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorRuakij <ruakij@ruekov.eu>2023-01-12 23:10:48 +0100
committerRuakij <ruakij@ruekov.eu>2023-01-12 23:10:48 +0100
commit8243bd5300369ee552d6ff5fab8a6df2ba54a6c8 (patch)
tree1f9495923ac8335c7b8036461df1be25bb0d1db1 /cmd
parent0f5daf692470ff4702138e02f3a4d85e73898da8 (diff)
downloadseaweedfs-csi-driver-8243bd5300369ee552d6ff5fab8a6df2ba54a6c8.tar.xz
seaweedfs-csi-driver-8243bd5300369ee552d6ff5fab8a6df2ba54a6c8.zip
Rename variable to match flag-name
Diffstat (limited to 'cmd')
-rw-r--r--cmd/seaweedfs-csi-driver/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/seaweedfs-csi-driver/main.go b/cmd/seaweedfs-csi-driver/main.go
index 8eedce3..99189d0 100644
--- a/cmd/seaweedfs-csi-driver/main.go
+++ b/cmd/seaweedfs-csi-driver/main.go
@@ -16,7 +16,7 @@ var (
nodeID = flag.String("nodeid", "", "node id")
version = flag.Bool("version", false, "Print the version and exit.")
concurrentWriters = flag.Int("concurrentWriters", 32, "limit concurrent goroutine writers if not 0")
- cacheSizeMB = flag.Int("cacheCapacityMB", 0, "local file chunk cache capacity in MB")
+ cacheCapacityMB = flag.Int("cacheCapacityMB", 0, "local file chunk cache capacity in MB")
cacheDir = flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data")
uidMap = flag.String("map.uid", "", "map local uid to uid on filer, comma-separated <local_uid>:<filer_uid>")
gidMap = flag.String("map.gid", "", "map local gid to gid on filer, comma-separated <local_gid>:<filer_gid>")
@@ -39,7 +39,7 @@ func main() {
drv := driver.NewSeaweedFsDriver(*filer, *nodeID, *endpoint)
drv.ConcurrentWriters = *concurrentWriters
- drv.CacheSizeMB = *cacheSizeMB
+ drv.CacheCapacityMB = *cacheCapacityMB
drv.CacheDir = *cacheDir
drv.UidMap = *uidMap
drv.GidMap = *gidMap