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>
This commit is contained in:
parent
3d99ecd7b5
commit
2ecda5a3fa
10
super-ddf.c
10
super-ddf.c
|
@ -3435,16 +3435,8 @@ static int validate_geometry_ddf(struct supertype *st,
|
||||||
*/
|
*/
|
||||||
fd = open(dev, O_RDONLY|O_EXCL, 0);
|
fd = open(dev, O_RDONLY|O_EXCL, 0);
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
sra = sysfs_read(fd, NULL, GET_VERSION);
|
|
||||||
close(fd);
|
close(fd);
|
||||||
if (sra && sra->array.major_version == -1 &&
|
/* Just a bare device, no good to us */
|
||||||
strcmp(sra->text_version, "ddf") == 0) {
|
|
||||||
/* load super */
|
|
||||||
/* find space for 'n' devices. */
|
|
||||||
/* remember the devices */
|
|
||||||
/* Somehow return the fact that we have enough */
|
|
||||||
}
|
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
pr_err("ddf: Cannot create this array "
|
pr_err("ddf: Cannot create this array "
|
||||||
"on device %s - a container is required.\n",
|
"on device %s - a container is required.\n",
|
||||||
|
|
Loading…
Reference in New Issue