summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-07-18 01:30:42 +0000
committerNeil Brown <neilb@suse.de>2005-07-18 01:30:42 +0000
commitfbf8a0b7a6f107c0fcecb6fea5640ffb1bc0d9c2 (patch)
tree6de8349d9242cfe11ad7ea0c3ac394a530315cf6 /super1.c
parentbea93430e8b9327688fa9f6d5220d9250546a292 (diff)
downloadmdadm-fbf8a0b7a6f107c0fcecb6fea5640ffb1bc0d9c2.tar.gz
mdadm-fbf8a0b7a6f107c0fcecb6fea5640ffb1bc0d9c2.tar.xz
mdadm-fbf8a0b7a6f107c0fcecb6fea5640ffb1bc0d9c2.zip
Document this...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index 31cf9a3..6bd5cec 100644
--- a/super1.c
+++ b/super1.c
@@ -278,7 +278,7 @@ static void getinfo_super1(struct mdinfo *info, void *sbv)
info->disk.major = 0;
info->disk.minor = 0;
-
+ info->disk.number = __le32_to_cpu(sb->dev_number);
if (__le32_to_cpu(sb->dev_number) >= __le32_to_cpu(sb->max_dev) ||
__le32_to_cpu(sb->max_dev) > 512)
role = 0xfffe;
@@ -303,7 +303,7 @@ static void getinfo_super1(struct mdinfo *info, void *sbv)
for (i=0; i< __le32_to_cpu(sb->max_dev); i++) {
role = __le16_to_cpu(sb->dev_roles[i]);
- if (role == 0xFFFF || role < info->array.raid_disks)
+ if (/*role == 0xFFFF || */role < info->array.raid_disks)
working++;
}