dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/mdadm-3.2.4-map-dir.patch

373056
--- mdadm-3.2.4/Makefile.map-dir	2012-05-10 12:29:09.687578525 +0200
373056
+++ mdadm-3.2.4/Makefile	2012-05-10 12:28:05.514380800 +0200
373056
@@ -67,12 +67,12 @@
373056
 # Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
373056
 # pivotroot from early boot to late boot.
373056
 # /run is best, but for distros that don't support that, /dev can work.
373056
-MAP_DIR=/run/mdadm
373056
-MAP_FILE = map
373056
+MAP_DIR=/dev/md
373056
+MAP_FILE = md-device-map
373056
 MAP_PATH = $(MAP_DIR)/$(MAP_FILE)
373056
 MDMON_DIR = $(MAP_DIR)
373056
 # place for autoreplace cookies
373056
-FAILED_SLOTS_DIR = /run/mdadm/failed-slots
373056
+FAILED_SLOTS_DIR = $(MDMON_DIR)/failed-slots
373056
 DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
373056
 DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"
373056
 DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"