Changeset 68c966e in mainline for uspace/srv/bd
- Timestamp:
- 2024-10-11T17:37:03Z (17 months ago)
- Children:
- abc2c4b
- Parents:
- 4b759dc
- Location:
- uspace/srv/bd/hr
- Files:
-
- 4 edited
-
hr.c (modified) (1 diff)
-
superblock.c (modified) (1 diff)
-
superblock.h (modified) (2 diffs)
-
var.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/hr.c
r4b759dc r68c966e 141 141 } 142 142 143 str_cpy(new_volume->devname, 32, cfg->devname);143 str_cpy(new_volume->devname, HR_DEVNAME_LEN, cfg->devname); 144 144 for (i = 0; i < cfg->dev_no; i++) 145 145 new_volume->extents[i].svc_id = cfg->devs[i]; -
uspace/srv/bd/hr/superblock.c
r4b759dc r68c966e 97 97 uuid_encode(&uuid, metadata->uuid); 98 98 99 str_cpy(metadata->devname, 32, vol->devname);99 str_cpy(metadata->devname, HR_DEVNAME_LEN, vol->devname); 100 100 101 101 rc = block_write_direct(vol->extents[i].svc_id, HR_META_OFF, -
uspace/srv/bd/hr/superblock.h
r4b759dc r68c966e 44 44 45 45 #define HR_MAGIC 0x4420492041205248LLU 46 #define HR_UUID_LEN 16 46 47 47 48 typedef struct hr_metadata { … … 55 56 uint32_t strip_size; 56 57 uint32_t status; /* yet unused */ 57 uint8_t uuid[ 16];58 char devname[ 32];58 uint8_t uuid[HR_UUID_LEN]; 59 char devname[HR_DEVNAME_LEN]; 59 60 } hr_metadata_t; 60 61 -
uspace/srv/bd/hr/var.h
r4b759dc r68c966e 56 56 bd_srvs_t hr_bds; 57 57 link_t lvolumes; 58 char devname[ 32];58 char devname[HR_DEVNAME_LEN]; 59 59 hr_extent_t extents[HR_MAXDEVS]; 60 60 uint64_t nblocks;
Note:
See TracChangeset
for help on using the changeset viewer.
