Merge pull request #10968 from cybozu-go/osd-disallow-to-create-encrypted-osd-on-part
osd: disallow to create encrypted osd on partition
This commit is contained in:
1 file changed
+5
@@ -435,6 +435,11 @@ func getAvailableDevices(context *clusterd.Context, agent *OsdAgent) (*DeviceOsd
|
||||
}
|
||||
logger.Infof("device %q is available.", device.Name)
|
||||
|
||||
if device.Type == sys.PartType && agent.storeConfig.EncryptedDevice {
|
||||
logger.Infof("partition %q is not picked because encrypted OSD on partition is not allowed", device.Name)
|
||||
continue
|
||||
}
|
||||
|
||||
var deviceInfo *DeviceOsdIDEntry
|
||||
if agent.metadataDevice != "" && agent.metadataDevice == device.Name {
|
||||
// current device is desired as the metadata device
|
||||
|
||||
Reference in new issue
Block a user