Ignore:
Timestamp:
2025-06-28T15:07:17Z (9 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
d220b7d
Parents:
8ad48d1c
Message:

hr: metadata/foreign: alloc metadata structs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/metadata/foreign/softraid/hr_softraid.c

    r8ad48d1c raaf741f  
    183183        vol->strip_size = main_meta->ssdi.ssd_strip_size;
    184184
     185        vol->in_mem_md = calloc(1, SR_META_SIZE * DEV_BSIZE);
     186        if (vol->in_mem_md == NULL)
     187                return ENOMEM;
    185188        memcpy(vol->in_mem_md, main_meta, SR_META_SIZE * DEV_BSIZE);
    186189
Note: See TracChangeset for help on using the changeset viewer.