Changeset 9c9955ab in mainline for uspace/srv
- Timestamp:
- 2025-06-28T23:42:54Z (3 weeks ago)
- Children:
- e5c3580
- Parents:
- 0dbd4a9
- Location:
- uspace/srv/bd/hr/metadata/foreign/softraid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/metadata/foreign/softraid/hr_softraid.c
r0dbd4a9 r9c9955ab 190 190 iter->fini = false; 191 191 192 struct sr_meta_chunk *mc = 193 (struct sr_meta_chunk *)(main_meta + 1); 194 mc += index; 195 192 196 /* for now no ssd_rebuild handling for saved REBUILD */ 193 if (iter_meta->ssd_ondisk == max_counter_val) 197 if (iter_meta->ssd_ondisk == max_counter_val && 198 mc->scm_status != BIOC_SDREBUILD) 194 199 vol->extents[index].state = HR_EXT_ONLINE; 195 200 else -
uspace/srv/bd/hr/metadata/foreign/softraid/softraidvar.h
r0dbd4a9 r9c9955ab 39 39 #define _DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 40 40 #define DEV_BSIZE (1 << _DEV_BSHIFT) 41 42 /* copied from <dev/biovar.h>:struct bioc_disk */ 43 #define BIOC_SDONLINE 0x00 44 #define BIOC_SDOFFLINE 0x01 45 #define BIOC_SDFAILED 0x02 46 #define BIOC_SDREBUILD 0x03 47 #define BIOC_SDHOTSPARE 0x04 48 #define BIOC_SDUNUSED 0x05 49 #define BIOC_SDSCRUB 0x06 50 #define BIOC_SDINVALID 0xff 41 51 42 52 /* here continues stripped down and slightly modified softraidvat.h */
Note:
See TracChangeset
for help on using the changeset viewer.