Dan Williams: imsm: prune dead code in validate_geometry_imsm
Martin F. Krafft
madduck at alioth.debian.org
Wed Jan 27 02:04:01 UTC 2010
Module: mdadm
Branch: upstream
Commit: dd9bb2fbed335f69225ea1a3514bd27422288a18
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=dd9bb2fbed335f69225ea1a3514bd27422288a18
Author: Dan Williams <dan.j.williams at intel.com>
Date: Thu Dec 10 12:03:40 2009 -0700
imsm: prune dead code in validate_geometry_imsm
Signed-off-by: Dan Williams <dan.j.williams at intel.com>
---
super-intel.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 325630f..14e1521 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -3718,21 +3718,6 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout,
dev, freesize, verbose);
}
- /* limit creation to the following levels */
- if (!dev)
- switch (level) {
- case 0:
- case 1:
- case 10:
- case 5:
- return 0;
- default:
- if (verbose)
- fprintf(stderr, Name
- ": IMSM only supports levels 0,1,5,10\n");
- return 1;
- }
-
/* This device needs to be a device in an 'imsm' container */
fd = open(dev, O_RDONLY|O_EXCL, 0);
if (fd >= 0) {
More information about the pkg-mdadm-commits
mailing list