Changeset bbcd06e in mainline for uspace/srv/bd/hr/util.c


Ignore:
Timestamp:
2025-04-01T10:20:06Z (4 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
ca7fa5b
Parents:
52be5fa
Message:

hr: keep counter only in memory saved metadata

File:
1 edited

Legend:

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

    r52be5fa rbbcd06e  
    792792        vol->truncated_blkno = main_md->truncated_blkno;
    793793        vol->data_offset = main_md->data_offset;
    794         vol->counter = main_md->counter;
    795794        vol->metadata_version = main_md->version;
    796795        vol->extent_no = main_md->extent_no;
     
    824823
    825824        /*
    826          * TODO: something like mark md dirty or whatever, just sync the
    827          * vol->counter with vol->in_mem_md->counter, or merge them and only
    828          * keep the vol->in_mem_md->counter...
     825         * TODO: something like mark md dirty or whatever
     826         *      - probably will be handled by each md type differently,
     827         *        by specific function pointers
     828         *      - deal with this when foreign md will be handled
    829829         *
    830830         * XXX: if thats the only thing that can change in metadata
     
    836836         * write... but for now leave it here
    837837         */
    838         vol->counter++;
    839         vol->in_mem_md->counter = vol->counter;
     838        vol->in_mem_md->counter++;
    840839
    841840        hr_metadata_save(vol);
Note: See TracChangeset for help on using the changeset viewer.