into account when reporting ReadOnly status of a volume on
startup.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
if err != nil {
return nil, fmt.Errorf("error initializing volume %s: %s", uuid, err)
}
if err != nil {
return nil, fmt.Errorf("error initializing volume %s: %s", uuid, err)
}
- logger.Printf("started volume %s (%s), ReadOnly=%v", uuid, vol, cfgvol.ReadOnly)
+ logger.Printf("started volume %s (%s), ReadOnly=%v", uuid, vol, cfgvol.ReadOnly || va.ReadOnly)
sc := cfgvol.StorageClasses
if len(sc) == 0 {
sc := cfgvol.StorageClasses
if len(sc) == 0 {