Cosmetic nit. If a configured volume has no label, don't emit an empty
string for the name during probe. Simply indicate that it has no label. Submitted by: bhaga@ MFC after: 3 days
This commit is contained in:
parent
b569050a78
commit
87e7271687
@ -130,10 +130,17 @@ mfi_disk_attach(device_t dev)
|
|||||||
state = "unknown";
|
state = "unknown";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
device_printf(dev, "%juMB (%ju sectors) RAID volume '%s' is %s\n",
|
|
||||||
sectors / (1024 * 1024 / secsize), sectors,
|
if ( strlen(ld_info->ld_config.properties.name) == 0 ) {
|
||||||
ld_info->ld_config.properties.name,
|
device_printf(dev,
|
||||||
state);
|
"%juMB (%ju sectors) RAID volume (no label) is %s\n",
|
||||||
|
sectors / (1024 * 1024 / secsize), sectors, state);
|
||||||
|
} else {
|
||||||
|
device_printf(dev,
|
||||||
|
"%juMB (%ju sectors) RAID volume '%s' is %s\n",
|
||||||
|
sectors / (1024 * 1024 / secsize), sectors,
|
||||||
|
ld_info->ld_config.properties.name, state);
|
||||||
|
}
|
||||||
|
|
||||||
sc->ld_disk = disk_alloc();
|
sc->ld_disk = disk_alloc();
|
||||||
sc->ld_disk->d_drv1 = sc;
|
sc->ld_disk->d_drv1 = sc;
|
||||||
|
Loading…
Reference in New Issue
Block a user