Skip to contentSkip to conversation

Unify raid and lvm handling

PATCH Vladimir 'φ-coder/phcoder' Serbinenko 1 participant 2 messages Jan 28, 2012 – Jan 29, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

Unify RAID and LVM into one unifomr "diskfilter" similar to device-mapper or geom.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

=== modified file 'Makefile.util.def'

Makefile.util.def +3 -2
@@ -29,6 +29,9 @@
   common = grub-core/lib/pbkdf2.c;
   common = grub-core/commands/extcmd.c;
   common = grub-core/lib/arg.c;
+  common = grub-core/disk/ldm.c;
+  common = grub-core/disk/diskfilter.c;
+  common = grub-core/partmap/gpt.c;
 };
 
 library = {
@@ -53,7 +56,6 @@
   common = grub-core/disk/mdraid1x_linux.c;
   common = grub-core/disk/raid5_recover.c;
   common = grub-core/disk/raid6_recover.c;
-  common = grub-core/disk/raid.c;
   common = grub-core/fs/affs.c;
   common = grub-core/fs/afs.c;
   common = grub-core/fs/bfs.c;
@@ -103,7 +105,6 @@
   common = grub-core/partmap/acorn.c;
   common = grub-core/partmap/amiga.c;
   common = grub-core/partmap/apple.c;
-  common = grub-core/partmap/gpt.c;
   common = grub-core/partmap/msdos.c;
   common = grub-core/partmap/sun.c;
   common = grub-core/partmap/plan.c;

=== modified file 'grub-core/Makefile.core.def'

Makefile.core.def +7 -2
@@ -875,6 +875,11 @@
 };
 
 module = {
+  name = ldm;
+  common = disk/ldm.c;
+};
+
+module = {
   name = mdraid09;
   common = disk/mdraid_linux.c;
 };
@@ -885,8 +890,8 @@
 };
 
 module = {
-  name = raid;
-  common = disk/raid.c;
+  name = diskfilter;
+  common = disk/diskfilter.c;
 };
 
 module = {

=== renamed file 'grub-core/disk/raid.c' => 'grub-core/disk/diskfilter.c'

disk/diskfilter.c renamed from disk/raid.c +849 -693

1,731 lines not on this page · raw message

=== modified file 'grub-core/disk/dmraid_nvidia.c'

disk/dmraid_nvidia.c +52 -33

141 lines not on this page · raw message

=== added file 'grub-core/disk/ldm.c'

disk/ldm.c +997 -0

997 lines not on this page · raw message

=== modified file 'grub-core/disk/lvm.c'

disk/lvm.c +646 -924

87 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/disk/mdraid1x_linux.c'

disk/mdraid1x_linux.c +59 -46

105 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/disk/mdraid_linux.c'

disk/mdraid_linux.c +47 -30

77 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/disk/raid5_recover.c'

disk/raid5_recover.c +6 -7

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/disk/raid6_recover.c'

disk/raid6_recover.c +16 -34

50 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/disk.c'

kern/disk.c +1 -15

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/emu/full.c'

kern/emu/full.c +2 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/emu/hostdisk.c'

kern/emu/hostdisk.c +34 -804

838 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/env.c'

kern/env.c +0 -3

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/i386/realmode.S'

kern/i386/realmode.S +0 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/kern/ieee1275/openfw.c'

kern/ieee1275/openfw.c +1 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'grub-core/partmap/gpt.c'

partmap/gpt.c +6 -6

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'include/grub/disk.h'

grub/disk.h +20 -5

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== renamed file 'include/grub/raid.h' => 'include/grub/diskfilter.h'

grub/diskfilter.h renamed from grub/raid.h +139 -51

190 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'include/grub/emu/hostdisk.h'

grub/emu/hostdisk.h +16 -0

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'include/grub/gpt_partition.h'

grub/gpt_partition.h +17 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'include/grub/lvm.h'

grub/lvm.h +1 -50

51 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'util/getroot.c'

getroot.c +832 -0

832 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

=== modified file 'util/grub-fstest.c'

grub-fstest.c +4 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'util/grub-mount.c'

grub-mount.c +2 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'util/grub-probe.c'

grub-probe.c +18 -8

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

=== modified file 'util/grub-setup.c'

grub-setup.c +33 -63

96 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Unify RAID and LVM into one unifomr "diskfilter" similar to device-mapper or geom.

I went ahead and committed it after running a series of tests and fixing few bugs.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko