fs.configure: configurable volume growth

This commit is contained in:
Chris Lu
2020-11-17 01:00:02 -08:00
parent b04375a3d1
commit dc304342b2
8 changed files with 80 additions and 39 deletions

View File

@@ -122,6 +122,9 @@ func mergePathConf(a, b *filer_pb.FilerConf_PathConf) {
a.DiskType = b.DiskType
}
a.Fsync = b.Fsync || a.Fsync
if b.VolumeGrowthCount > 0 {
a.VolumeGrowthCount = b.VolumeGrowthCount
}
}
func (fc *FilerConf) ToProto() *filer_pb.FilerConf {