ENUM MDDEV_FLAGS(9)
π enum mddev_flags(9) β the Kernel API Manual, but make it cute
okay so bestie, this is the page for enum mddev_flags(9) β yeah, the whole flag buffet for md devices. it lives in the Kernel API Manual and it's basically the master list of vibes an md array can be in. let's get into it π
πΈ NAME πΈ
enum mddev_flags β md device flags. literally that's it, that's the whole name. iconic brevity β¨
π¦ SYNOPSIS π¦
enum mddev_flags {
MD_ARRAY_FIRST_USE ,
MD_CLOSING ,
MD_JOURNAL_CLEAN ,
MD_HAS_JOURNAL ,
MD_CLUSTER_RESYNC_LOCKED ,
MD_FAILFAST_SUPPORTED ,
MD_HAS_PPL ,
MD_HAS_MULTIPLE_PPLS ,
MD_NOT_READY ,
MD_BROKEN ,
MD_DO_DELETE ,
MD_DELETED ,
MD_HAS_SUPERBLOCK ,
MD_FAILLAST_DEV ,
MD_SERIALIZE_POLICY ,
MD_DM_SUSPENDING
};
look at her. sixteen constants, all lined up, all serving π
π Constants π
the whole cast of flags, one by one
MD_ARRAY_FIRST_USEβ first use of the array, so it needs initialization. baby's first boot energy π±MD_CLOSINGβ if this is set, we're closing the array, so don't go opening it then. read the room, fr fr πMD_JOURNAL_CLEANβ a raid with journal is already clean. spotless. ate and left no crumbs β¨MD_HAS_JOURNALβ the raid array has the journal feature set. she journals πMD_CLUSTER_RESYNC_LOCKEDβ cluster raid only, and it means the node already took the resync lock, so the lock needs to be released. team effort, no cap π«ΆMD_FAILFAST_SUPPORTEDβ usingMD_FAILFASTon metadata writes is supported, because calls tomd_errorwill never cause the array to become failed. safety net: confirmed πMD_HAS_PPLβ the raid array has the PPL feature set.MD_HAS_MULTIPLE_PPLSβ the raid array has the multiple PPLs feature set. yes, plural, she's extra πMD_NOT_READYβdo_md_runis active, soarray_statemust not report that the array is ready yet. hold on bestie, we're still loading β³MD_BROKENβ this one is used to stop writes and mark the array as failed. it's giving intervention πMD_DO_DELETEβ-- undescribed --. the manpage really said no thoughts, head empty π (that's genuinely all the source gives us)MD_DELETEDβ this device is being deleted. bye bestie πMD_HAS_SUPERBLOCKβ there is persistence sb in member disks.MD_FAILLAST_DEVβ allow the last rdev to be removed. one last ride π₯MD_SERIALIZE_POLICYβ enforce that write IO is not reordered; just used by raid1. no cutting the line π«MD_DM_SUSPENDINGβ this DM raid device is suspending. brb, going dormant π§
π Description π
so the actual instruction here is: change UNSUPPORTED_MDDEV_FLAGS for each array type if a new flag is added. that's the whole description. short, sweet, and honestly kind of a threat π
β SEE ALSO β
- Kernel file
./drivers/md/md.hβ go read the source, iykyk π
and that's the page!! sign-off time: this one ships from ./drivers/md, dated October 2026, no cap. go forth and flag responsibly π«Άππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms