diff options
author | Lukasz Dorau <lukasz.dorau@intel.com> | 2012-01-12 00:57:20 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-01-12 00:57:20 +0100 |
commit | 0c4304ca8b3328132537922fed8ee9e3bbb8a0fa (patch) | |
tree | d620f96bcf2e8e56dfee463ecf0f340ce9b7a1e4 /Incremental.c | |
parent | Work around gcc-4.7's strict aliasing checks (diff) | |
download | mdadm-0c4304ca8b3328132537922fed8ee9e3bbb8a0fa.tar.xz mdadm-0c4304ca8b3328132537922fed8ee9e3bbb8a0fa.zip |
fix: container creation with --incremental used.
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>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Incremental.c b/Incremental.c index 78c97129..60175af0 100644 --- a/Incremental.c +++ b/Incremental.c @@ -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; } |