diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2014-11-26 12:22:03 -0600 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-02-23 07:28:43 -0600 |
commit | ca8895d9bb41e743271c42a4438a296de891b73b (patch) | |
tree | 13520c0596a282139fedd1b9d52297548fd1011d /drivers/md/md.c | |
parent | c4ce867fdad200dfd8aa8cbe1eabc26c14c51635 (diff) | |
download | op-kernel-dev-ca8895d9bb41e743271c42a4438a296de891b73b.zip op-kernel-dev-ca8895d9bb41e743271c42a4438a296de891b73b.tar.gz |
Return MD_SB_CLUSTERED if mddev is clustered
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 3387f94..5ed5768 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -5634,6 +5634,9 @@ static int get_array_info(struct mddev *mddev, void __user *arg) info.state = (1<<MD_SB_CLEAN); if (mddev->bitmap && mddev->bitmap_info.offset) info.state |= (1<<MD_SB_BITMAP_PRESENT); + if (mddev_is_clustered(mddev)) + info.state |= (1<<MD_SB_CLUSTERED); + info.active_disks = insync; info.working_disks = working; info.failed_disks = failed; |