]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
fix: container creation with --incremental used.
authorLukasz Dorau <lukasz.dorau@intel.com>
Wed, 11 Jan 2012 23:57:20 +0000 (10:57 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 11 Jan 2012 23:57:20 +0000 (10:57 +1100)
If there is no name provided for a container by the metadata it is
always appropriate to use the metadata version name.  create_mddev
will still add a uniquifying digit to the end so there is little risk
of confusion.
This makes the --incremental code behave the same as the --assemble code.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c

index 78c9712981883a467b352e9e2a085baded93b2f8..60175af048ef86c42413e6d138eab87d64d3ee5f 100644 (file)
@@ -259,8 +259,7 @@ int Incremental(char *devname, int verbose, int runstop,
 
        name_to_use = info.name;
        if (name_to_use[0] == 0 &&
-           info.array.level == LEVEL_CONTAINER &&
-           trustworthy == LOCAL) {
+           info.array.level == LEVEL_CONTAINER) {
                name_to_use = info.text_version;
                trustworthy = METADATA;
        }