nvme_disk: Add the block size and count to the syslog output upon opening devices.
Since we do not entirely go through DMAResource, these numbers can be relevant in diagnosing problems from tickets.
This commit is contained in:
parent
5250914df7
commit
18851359d0
@ -209,6 +209,7 @@ nvme_disk_init_device(void* _info, void** _cookie)
|
||||
nvme_ctrlr_close(info->ctrlr);
|
||||
return B_ERROR;
|
||||
}
|
||||
TRACE_ALWAYS("namespace 0\n");
|
||||
|
||||
struct nvme_ns_stat nsstat;
|
||||
err = nvme_ns_stat(info->ns, &nsstat);
|
||||
@ -219,11 +220,10 @@ nvme_disk_init_device(void* _info, void** _cookie)
|
||||
}
|
||||
|
||||
// store capacity information
|
||||
TRACE_ALWAYS("\tblock size: %" B_PRIuSIZE ", stripe size: %" B_PRIuSIZE "\n",
|
||||
nsstat.sector_size, info->ns->stripe_size);
|
||||
nvme_disk_set_capacity(info, nsstat.sectors, nsstat.sector_size);
|
||||
|
||||
TRACE("capacity: %" B_PRIu64 ", block_size %" B_PRIu32 "\n",
|
||||
info->capacity, info->block_size);
|
||||
|
||||
// set up interrupts
|
||||
if (get_module(B_PCI_X86_MODULE_NAME, (module_info**)&sPCIx86Module)
|
||||
!= B_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user