summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@gmail.com>2017-04-05 15:47:37 -0400
committerJes Sorensen <Jes.Sorensen@gmail.com>2017-04-05 15:47:37 -0400
commitb6e60be6281a2a4ec326a72de114867797a42d7f (patch)
tree0b4a79934dd9739ca802c7f6268fff4867cba386 /Assemble.c
parent1c9591115d577841522acd245cd2445cb77ee204 (diff)
downloadmdadm-b6e60be6281a2a4ec326a72de114867797a42d7f.tar.gz
Assemble/Assemble: Get rid of last use of md_get_version()
At this point in the code, we know we have a valid array, and any recent kernel will return 9003, so no point in querying the kernel for this. Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index fa5fdbe..0db428f 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1901,7 +1901,7 @@ int assemble_container_content(struct supertype *st, int mdfd,
c->readonly &&
content->text_version[0] == '/')
content->text_version[0] = '-';
- if (sysfs_set_array(content, md_get_version(mdfd)) != 0) {
+ if (sysfs_set_array(content, 9003) != 0) {
sysfs_free(sra);
return 1;
}