|
@ -37,7 +37,7 @@ func (v *Volume) maybeWriteSuperBlock() error { |
|
|
|
|
|
|
|
|
func (v *Volume) readSuperBlock() (err error) { |
|
|
func (v *Volume) readSuperBlock() (err error) { |
|
|
v.SuperBlock, err = super_block.ReadSuperBlock(v.DataBackend) |
|
|
v.SuperBlock, err = super_block.ReadSuperBlock(v.DataBackend) |
|
|
if v.volumeInfo != nil && v.volumeInfo.Replication != ""{ |
|
|
|
|
|
|
|
|
if v.volumeInfo != nil && v.volumeInfo.Replication != "" { |
|
|
if replication, err := super_block.NewReplicaPlacementFromString(v.volumeInfo.Replication); err != nil { |
|
|
if replication, err := super_block.NewReplicaPlacementFromString(v.volumeInfo.Replication); err != nil { |
|
|
return fmt.Errorf("Error parse volume %d replication %s : %v", v.Id, v.volumeInfo.Replication, err) |
|
|
return fmt.Errorf("Error parse volume %d replication %s : %v", v.Id, v.volumeInfo.Replication, err) |
|
|
} else { |
|
|
} else { |
|
|