Changeset 9c1cf34c in mainline for uspace/lib/device/src/hr.c


Ignore:
Timestamp:
2024-09-06T12:14:09Z (11 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
24968b5
Parents:
b0f1366
Message:

hr: add strip size to metadata and hr_volume_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/src/hr.c

    rb0f1366 r9c1cf34c  
    157157
    158158        printf("level: %d\n", vol_info->level);
    159         printf("nblocks: %lu\n", vol_info->nblocks);
    160         printf("bsize: %zu\n", vol_info->bsize);
     159        if (vol_info->level == hr_l_0) {
     160                if (vol_info->strip_size / 1024 < 1)
     161                        printf("strip size in bytes: %u\n",
     162                            vol_info->strip_size);
     163                else
     164                        printf("strip size: %uK\n",
     165                            vol_info->strip_size / 1024);
     166        }
     167        printf("size in bytes: %luMiB\n",
     168            vol_info->nblocks * vol_info->bsize / 1024 / 1024);
     169        printf("size in blocks: %lu\n", vol_info->nblocks);
     170        printf("block size: %zu\n", vol_info->bsize);
     171
    161172
    162173        printf("extents: [index] [devname]\n");
Note: See TracChangeset for help on using the changeset viewer.