On Tue, 31 Dec 2024 11:47:23 +0800 Yu Kuai <yukuai1@xxxxxxxxxxxxxxx> wrote: > Hi, > > 在 2024/12/31 11:09, Tomas Mudrunka 写道: > > When working on software that manages MD RAID disks from > > userspace. Currently provided headers only contain MD superblock. > > That is not enough to fully populate MD RAID metadata. > > Therefore this patch adds bitmap superblock as well. > > > > Thanks for the patch, however, Why do you want to directly manipulate > the metadata instead of using mdadm? You must first provide an > explanation to convince us that what you're doing makes sense, and > it's best to show your work. > > Thanks, > Kuai I'm with Kuai here. I would also add that for such purposes you can use externally managed metadata, not native. External management was proposed to address your problem however over the years it turned out to not be good conception (kernel driver relies on userspace daemon which is not secure). Thanks, Mariusz