mdadm/raid0-layout.patch
Xiao Ni 46c8631620 Fix raid0 layout display problem
Resolves: RHEL-8372

Signed-off-by: Xiao Ni <xni@redhat.com>
2023-11-10 19:39:51 +08:00

13 lines
414 B
Diff

--- mdadm/super1-orig.c 2023-11-10 19:27:25.262178162 +0800
+++ mdadm/super1.c 2023-11-10 19:28:25.991441827 +0800
@@ -1988,8 +1988,7 @@
long bm_offset;
bool raid0_need_layout = false;
- /* Since linux kernel v5.4, raid0 always has a layout */
- if (has_raid0_layout(sb) && get_linux_version() >= 5004000)
+ if (has_raid0_layout(sb))
raid0_need_layout = true;
for (di = st->info; di; di = di->next) {