diff options
author | Neil Brown <neilb@suse.de> | 2004-06-04 12:03:19 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2004-06-04 12:03:19 +0000 |
commit | dd0781e50555c32ff2f808ec46f4b03a5693ea47 (patch) | |
tree | a423ae6f7033fa5e05dcf60f2b3659e38c9d5cb7 /Build.c | |
parent | 98c6faba80e6db0693f99faf5c6525ef4f1fb680 (diff) | |
download | mdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.tar.gz mdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.tar.xz mdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.zip |
mdadm-1.6.0mdadm-1.6.0
Diffstat (limited to 'Build.c')
-rw-r--r-- | Build.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,7 +35,7 @@ int Build(char *mddev, int mdfd, int chunk, int level, int raiddisks, - mddev_dev_t devlist) + mddev_dev_t devlist, int assume_clean) { /* Build a linear or raid0 arrays without superblocks * We cannot really do any checks, we just do it. @@ -91,6 +91,8 @@ int Build(char *mddev, int mdfd, int chunk, int level, array.md_minor = MINOR(stb.st_rdev); array.not_persistent = 1; array.state = 0; /* not clean, but no errors */ + if (assume_clean) + array.state |= 1; array.active_disks = raiddisks; array.working_disks = raiddisks; array.spare_disks = 0; |