Skip to content

Metadata for raid module#3

Open
Kuarni wants to merge 47 commits intomasterfrom
metadata
Open

Metadata for raid module#3
Kuarni wants to merge 47 commits intomasterfrom
metadata

Conversation

@Kuarni
Copy link
Owner

@Kuarni Kuarni commented Dec 21, 2023

Add metadata to the raid module. Now it is possible to retrieve raid from base bdevs. Also add CLI interface for it in rpc.py.

Updating of metadata not implemented yet.

Kuarni added 30 commits December 2, 2023 03:51
for future realisation of superblock
also add superblock to the base bdev struct
- add raid metadata's magic number
- add enum for the metadata versions
- change uuid from base bdev to raid bdev
- add physical blocklen
…superblock

add position, is_new_ sb_loaded to raid_base_bdev_info
is_new to raid_bdev for operation with raid's superblocks
add memset 0 for remaining of superblock in super_sync
change enum to uint32_t
remove useless phys_blocklen
for super_init_validation function
raid_bdev->is_new shouldn't be changed in this function
super_sync will be in base_bdev_super_validate
remove rewrite of blockcnt, timestamp
rename to super_init_validation
add validation of metadata
add return
it's main function for operate with raid metadata during initialization
add spdk_bdev_read_blocks error return
add free of io channel
change message in read callback
delete useless ctx in load_base_bdevs_sb
rename load_base_bdevs_sb to base_bdev_read_sb
replace bad from bad to if base_bdev_read_sb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments