NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bioctl cosmetic issue



john%ziaspace.com@localhost (John Klos) writes:

>[     1.033007] mfii0 at pci1 dev 0 function 0: "LSI MegaRAID SAS 9271-4i", firmware 23.34.0-0019, 1024MB cache

>Where is bioctl supposed to get the sector size?

bioctl prints a struct bioc_vol which has the volume size in bytes.

The calculation is done by the particular driver:

mfi.c:
mfii.c:

bv->bv_size = sc->sc_ld_details.mld_size * 512; /* bytes per block */

mpt_netbsd.c:

        bv->bv_size = (uint64_t)rvol0->MaxLBA * 512;

But e.g.:

mpii.c:
        bv->bv_size = le64toh(vpg->max_lba) * le16toh(vpg->block_size);




Home | Main Index | Thread Index | Old Index