Changeset 800d188 in mainline for uspace/srv/bd/hr/hr.c


Ignore:
Timestamp:
2025-04-15T07:00:31Z (2 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
29e7cc7
Parents:
ca7fa5b
git-author:
Miroslav Cimerman <mc@…> (2025-04-15 06:55:25)
git-committer:
Miroslav Cimerman <mc@…> (2025-04-15 07:00:31)
Message:

hr: metadata saving on stop

New bool argument for hr_metadata_save() to indicate if
we want callback too (on array stop we don't, so we won't
init a rebuild).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/hr.c

    rca7fa5b r800d188  
    146146                goto error;
    147147
    148         rc = hr_metadata_save(new_volume);
    149         if (rc != EOK)
    150                 goto error;
    151 
    152148        rc = new_volume->hr_ops.create(new_volume);
     149        if (rc != EOK)
     150                goto error;
     151
     152        rc = hr_metadata_save(new_volume, WITH_STATE_CALLBACK);
    153153        if (rc != EOK)
    154154                goto error;
Note: See TracChangeset for help on using the changeset viewer.