[PATCH] imsm: Disable --dump/--restore options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently --dump/--restore are not working correctly.
Temporarily disable this functionally for IMSM
to avoid unexpected behaviors and side effects.

Signed-off-by: Blazej Kucman <blazej.kucman@xxxxxxxxx>
---
 super-intel.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/super-intel.c b/super-intel.c
index 5c1f759f..b2a4528d 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2130,6 +2130,13 @@ static void export_examine_super_imsm(struct supertype *st)
 
 static int copy_metadata_imsm(struct supertype *st, int from, int to)
 {
+	/*
+	 * Disable this functionality for IMSM,
+	 * since it is not working correctly.
+	 */
+	pr_err("--dump/--restore is not supported for IMSM metadata format.\n");
+	return 1;
+
 	/* The second last sector of the device contains
 	 * the "struct imsm_super" metadata.
 	 * This contains mpb_size which is the size in bytes of the
-- 
2.16.4




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux