summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-15 00:56:02 +0000
committerNeil Brown <neilb@suse.de>2006-05-15 00:56:02 +0000
commit4ccdb956000d19fd03c4192ce7b8b147e34a5af0 (patch)
treeae3e0aba17da4ff0b35ca17a588980b6a879c739 /config.c
parentc4d831e164da10be75f915f9e06c529e90f55da9 (diff)
downloadmdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.tar.gz
mdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.tar.xz
mdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.zip
Use O_DIRECT to read bitmap files.
A pending patch to the kernel causes bitmap file updates to not go through the page cache, so O_DIRECT is needed to ensure that we read current data. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index bb22b0e..70b798e 100644
--- a/config.c
+++ b/config.c
@@ -273,7 +273,7 @@ void arrayline(char *line)
mis.super_minor = UnSet;
mis.level = UnSet;
mis.raid_disks = UnSet;
- mis.spare_disks = UnSet;
+ mis.spare_disks = 0;
mis.devices = NULL;
mis.devname = NULL;
mis.spare_group = NULL;