Changeset 50603405 in mainline for uspace/srv/bd/hr/util.h


Ignore:
Timestamp:
2025-04-20T10:09:26Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
14394141
Parents:
6f41c21f
git-author:
Miroslav Cimerman <mc@…> (2025-04-20 09:56:29)
git-committer:
Miroslav Cimerman <mc@…> (2025-04-20 10:09:26)
Message:

hr: metadata format agnostic superblock ops

Put metadata specific code behind a new hr_superblock_ops_t
interface, that allows to easily add support for new metadata
formats.

File:
1 edited

Legend:

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

    r6f41c21f r50603405  
    3737#define _HR_UTIL_H
    3838
     39#include <adt/list.h>
    3940#include <errno.h>
    4041#include <hr.h>
    4142#include <io/log.h>
    4243
     44#include "superblock.h"
    4345#include "var.h"
     46
     47struct dev_list_member {
     48        link_t           link;
     49        service_id_t     svc_id;
     50        void            *md;
     51        bool             inited;
     52        bool             md_present;
     53};
    4454
    4555#define HR_DEBUG(format, ...) \
     
    5464
    5565extern errno_t           hr_create_vol_struct(hr_volume_t **, hr_level_t,
    56     const char *);
     66    const char *, metadata_type_t);
    5767extern void              hr_destroy_vol_struct(hr_volume_t *);
    5868extern hr_volume_t      *hr_get_volume(service_id_t);
Note: See TracChangeset for help on using the changeset viewer.