summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-21 14:03:48 +1000
committerNeilBrown <neilb@suse.de>2014-05-21 14:03:48 +1000
commit2ecda5a3fa0382c615aebe11111c671357137378 (patch)
tree6e79ca6564245ac9b3a2d6d16b17aaca16bb00fe /super-ddf.c
parent3d99ecd7b540e0a04622ffebc218750a572ffbb6 (diff)
downloadmdadm-2ecda5a3fa0382c615aebe11111c671357137378.tar.gz
DDF: remove some pointless code in validate_geometry
I'm not sure what this was supposed to do, but it isn't needed as creating on a container and on individual devices (in a container) work fine already. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 6368bc4..f912199 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -3435,16 +3435,8 @@ static int validate_geometry_ddf(struct supertype *st,
*/
fd = open(dev, O_RDONLY|O_EXCL, 0);
if (fd >= 0) {
- sra = sysfs_read(fd, NULL, GET_VERSION);
close(fd);
- if (sra && sra->array.major_version == -1 &&
- strcmp(sra->text_version, "ddf") == 0) {
- /* load super */
- /* find space for 'n' devices. */
- /* remember the devices */
- /* Somehow return the fact that we have enough */
- }
-
+ /* Just a bare device, no good to us */
if (verbose)
pr_err("ddf: Cannot create this array "
"on device %s - a container is required.\n",