]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Revert change to handling of -empty-string- metadata.
authorNeilBrown <neilb@suse.de>
Mon, 31 May 2010 02:08:02 +0000 (12:08 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 31 May 2010 02:08:02 +0000 (12:08 +1000)
commit5082750467726d7cad6059ee8a41713da23426d3
tree20331635e4c9182035ee7ffae690c6f78ed9b03b
parentd492df0307f1750210450ca7454ea9362e86b733
Revert change to handling of -empty-string- metadata.

If the metadata is an empty string, it means the array in question
does not use metadata.  This comes from sysfs_read finding "none" in
"metadata_version", then super_by_fd noticing the vers == -1, and so
just using the ->text_version (which is empty).

In this case we want to use the super0 metadata handler routines
because that is what we always used to do before

 commit 7d5c3964ccfaace123f7b75e15d38c2650e013d8

And that commit was wrong because "" doesn't mean "default" and so
should not have been changed at the same time.

Reported-by: martin f. krafft <madduck@debian.org>
Signed-off-by: NeilBrown <neilb@suse.de>
super0.c
super1.c