diff options
author | NeilBrown <neilb@suse.de> | 2008-10-25 09:20:49 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-10-25 09:20:49 +0200 |
commit | b3d3195538e315b3863235731112eee7398d4340 (patch) | |
tree | 7decf7dd32fe805c1206efc93e54fea1f23af378 /Create.c | |
parent | Remove .UR .UE macros from man page because the don't do what we want. (diff) | |
download | mdadm-b3d3195538e315b3863235731112eee7398d4340.tar.xz mdadm-b3d3195538e315b3863235731112eee7398d4340.zip |
Allow WRITEMOSTLY to be cleared on --readd using --readwrite.
Previously it was possible to set the WRITEMOSTLY flag when
adding a device to an array, but not to clear the flag when re-adding.
This is now possible with --readwrite.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -534,7 +534,7 @@ int Create(struct supertype *st, char *mddev, int mdfd, (1<<MD_DISK_SYNC); else info.disk.state = 0; - if (dv->writemostly) + if (dv->writemostly == 1) info.disk.state |= (1<<MD_DISK_WRITEMOSTLY); if (dnum == insert_point || |