Changeset 8b51009 in mainline for uspace/srv/bd/hr/var.h
- Timestamp:
- 2025-03-28T23:37:16Z (3 months ago)
- Children:
- 0437dd5
- Parents:
- 7bfe468
- git-author:
- Miroslav Cimerman <mc@…> (2025-03-28 23:25:57)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-03-28 23:37:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/var.h
r7bfe468 r8b51009 42 42 #include <fibril_synch.h> 43 43 #include <hr.h> 44 #include <stdatomic.h> 44 45 45 46 #include "fge.h" 47 #include "superblock.h" 46 48 47 49 #define NAME "hr" … … 50 52 struct hr_volume; 51 53 typedef struct hr_volume hr_volume_t; 54 typedef struct hr_metadata hr_metadata_t; 52 55 53 56 typedef struct hr_ops { … … 69 72 hr_fpool_t *fge; /* fibril pool */ 70 73 74 uint32_t metadata_version; /* XXX: yet unused */ 75 76 hr_metadata_t *in_mem_md; /* TODO: implement */ 77 71 78 /* invariants */ 72 79 size_t extent_no; /* number of extents */ 73 80 size_t bsize; /* block size */ 74 81 uint64_t nblocks; /* no. of all usable blocks */ 82 uint64_t truncated_blkno; /* blkno per extent */ 75 83 uint64_t data_blkno; /* no. of user usable blocks */ 76 84 uint64_t data_offset; /* user data offset in blocks */ … … 91 99 _Atomic bool state_dirty; /* dirty state */ 92 100 93 /* 94 * XXX: unportable for 32-bit? 95 * 96 * Add macros for locking or atomic increment depending 97 * on the platform? 98 */ 101 /* XXX: atomic_uint_least64_t? */ 99 102 _Atomic uint64_t rebuild_blk; /* rebuild position */ 103 _Atomic int open_cnt; /* open/close() counter */ 100 104 uint64_t counter; /* TODO: metadata syncing */ 101 105 hr_vol_status_t status; /* volume status */
Note:
See TracChangeset
for help on using the changeset viewer.