diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-06-13 17:27:30 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-06-13 17:27:30 -0700 |
commit | c42ec1ed43a811ad866be58f8f7fa460e22a3109 (patch) | |
tree | 97b5df11dba68567df88e37293f5e38cbdb292e9 | |
parent | 1ba6bff90226a609700b8e78345a41bbe1997845 (diff) | |
download | mdadm-c42ec1ed43a811ad866be58f8f7fa460e22a3109.tar.gz mdadm-c42ec1ed43a811ad866be58f8f7fa460e22a3109.tar.xz mdadm-c42ec1ed43a811ad866be58f8f7fa460e22a3109.zip |
ddf: fix up validate_geometry to ignore other containers
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | super-ddf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/super-ddf.c b/super-ddf.c index 0d2a456..acfb491 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2147,9 +2147,9 @@ int validate_geometry_ddf(struct supertype *st, dev, freesize); } close(cfd); - } - fprintf(stderr, Name ": Cannot use %s: Already in use\n", - dev); + } else /* device may belong to a different container */ + return 0; + return 1; } |