Changeset 40ab4901 in mainline


Ignore:
Timestamp:
2025-06-29T10:29:31Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
c095ad93
Parents:
150adbd2
Message:

hr: metadata/softraid: do not support dirty flag set

File:
1 edited

Legend:

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

    r150adbd2 r40ab4901  
    396396        memcpy(md->ssd_devname, scratch_md->ssd_devname, 32);
    397397        md->ssd_meta_flags = uint32_t_le2host(scratch_md->ssd_meta_flags);
     398        if (md->ssd_meta_flags & SR_META_DIRTY) {
     399                HR_DEBUG("dirty metadata not supported\n");
     400                rc = EINVAL;
     401                goto error;
     402        }
    398403        md->ssd_data_blkno = uint32_t_le2host(scratch_md->ssd_data_blkno);
    399404        md->ssd_ondisk = uint64_t_le2host(scratch_md->ssd_ondisk);
Note: See TracChangeset for help on using the changeset viewer.