summaryrefslogtreecommitdiffstats
path: root/Build.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2004-06-04 12:03:19 +0000
committerNeil Brown <neilb@suse.de>2004-06-04 12:03:19 +0000
commitdd0781e50555c32ff2f808ec46f4b03a5693ea47 (patch)
treea423ae6f7033fa5e05dcf60f2b3659e38c9d5cb7 /Build.c
parent98c6faba80e6db0693f99faf5c6525ef4f1fb680 (diff)
downloadmdadm-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build.c b/Build.c
index 0179807..3e182f8 100644
--- a/Build.c
+++ b/Build.c
@@ -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;