[dm-devel] [PATCH <missing> of 8: MD new mddev flag value
Jonathan Brassow
jbrassow at redhat.com
Fri Dec 10 23:37:16 UTC 2010
Sorry, I missed a patch that should have gone in-between the MD and DM
patches:
md-backout-dm-dirty-log.patch
md-minor-updates.patch
md-fix-null-pointer-deref.patch
-> md-new-mddev-flag-value.patch
dm-raid-seed-module.patch
dm-target-callbacks-and-congestion-fn.patch
dm-unplug-callback.patch
dm-raid-iterate_devices-and-io_hints.patch
dm-raid-suspend-and-resume-fns.patch
Mea Culpa,
brassow
Add a new possible flag for the mddev structure.
The flag is used by device-mapper to tell MD to override the
information it finds in the superblock/bitmap WRT the
overall [re]sync of the array.
Signed-off-by: Jonathan Brassow <jbrassow at redhat.com>
Index: linux-2.6/drivers/md/md.h
===================================================================
--- linux-2.6.orig/drivers/md/md.h
+++ linux-2.6/drivers/md/md.h
@@ -140,6 +140,7 @@ struct mddev_s
#define MD_CHANGE_DEVS 0 /* Some device status has changed */
#define MD_CHANGE_CLEAN 1 /* transition to or from 'clean' */
#define MD_CHANGE_PENDING 2 /* switch from 'clean' to 'active' in progress */
+#define MD_SYNC_STATE_FORCED 4 /* recovery_cp is set and must be honored */
int suspended;
atomic_t active_io;
More information about the dm-devel
mailing list