diff options
author | NeilBrown <neilb@suse.de> | 2008-10-25 18:20:49 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-10-25 18:20:49 +1100 |
commit | b3d3195538e315b3863235731112eee7398d4340 (patch) | |
tree | 7decf7dd32fe805c1206efc93e54fea1f23af378 /Create.c | |
parent | 11cd8b79c0690bf39b40a25352f86a82a838622a (diff) |
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 || |