diff options
author | NeilBrown <neilb@suse.de> | 2009-03-31 14:33:13 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-31 14:33:13 +1100 |
commit | 575a80fa4f623141e9791e41879d87800fb6d862 (patch) | |
tree | f316efc3ee33b2914d8b9f3a3041394560ee9e90 /drivers/md/multipath.c | |
parent | 97e4f42d62badb0f9fbc27c013e89bc1336a03bc (diff) | |
download | kernel_samsung_smdk4412-575a80fa4f623141e9791e41879d87800fb6d862.zip kernel_samsung_smdk4412-575a80fa4f623141e9791e41879d87800fb6d862.tar.gz kernel_samsung_smdk4412-575a80fa4f623141e9791e41879d87800fb6d862.tar.bz2 |
md: be more consistent about setting WriteMostly flag when adding a drive to an array
When a drive is added to an array using ADD_NEW_DISK, there are two
places we can get certain flags from: the metadata on the disk or the
flags passed through the IOCTL.
For the WriteMostly flag (aka MD_DISK_WRITEMOSTLY) we take the value
from either of those sources depending on if it is set (i.e. we
effectively 'or' the two sources together).
This makes it awkward to clear, and is at best inconsistent.
As documented code (in mdadm) requires that setting
MD_DISK_WRITEMOSTLY in the ioctl will be effective, we resolve the
inconsistency by always using the value for this flag from the ioctl,
and ignoring the value on disk.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/multipath.c')
0 files changed, 0 insertions, 0 deletions