projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c83445
)
md: make sure GET_ARRAY_INFO ioctl reports correct "clean" status
author
NeilBrown
<neilb@suse.de>
Wed, 2 Jul 2014 01:35:06 +0000
(11:35 +1000)
committer
NeilBrown
<neilb@suse.de>
Thu, 3 Jul 2014 00:44:31 +0000
(10:44 +1000)
If an array has a bitmap, the when we set the "has bitmap" flag we
incorrectly clear the "is clean" flag.
"is clean" isn't really important when a bitmap is present, but it is
best to get it right anyway.
Reported-by: George Duffield <forumscollective@gmail.com>
Link:
http://lkml.kernel.org/CAG__1a4MRV6gJL38XLAurtoSiD3rLBTmWpcS5HYvPpSfPR88UQ@mail.gmail.com
Fixes:
36fa30636fb84b209210299684e1be66d9e58217
(v2.6.14)
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index
3484685
..
817dbca
100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-5599,7
+5599,7
@@
static int get_array_info(struct mddev * mddev, void __user * arg)
if (mddev->in_sync)
info.state = (1<<MD_SB_CLEAN);
if (mddev->bitmap && mddev->bitmap_info.offset)
- info.state = (1<<MD_SB_BITMAP_PRESENT);
+ info.state
|
= (1<<MD_SB_BITMAP_PRESENT);
info.active_disks = insync;
info.working_disks = working;
info.failed_disks = failed;