summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-01-30 23:23:45 +0000
committerNeil Brown <neilb@suse.de>2006-01-30 23:23:45 +0000
commit8fac0577f01646cb8a768c0830a884f74c63a18c (patch)
tree80f70444c7fb89aa7e610b4a360b575129033470 /Detail.c
parent91eedefcdddd6c4f4e159cfb9be9de38c9b39c7d (diff)
downloadmdadm-8fac0577f01646cb8a768c0830a884f74c63a18c.tar.gz
mdadm-8fac0577f01646cb8a768c0830a884f74c63a18c.tar.xz
mdadm-8fac0577f01646cb8a768c0830a884f74c63a18c.zip
Stuff like..
- report Intent Bitmap in --detail - report internal bitmap in --examine - pass' --force through to --grow --bitmap - support v.large arrays in --grow --bitmap Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Detail.c b/Detail.c
index 6836f09..704fffe 100644
--- a/Detail.c
+++ b/Detail.c
@@ -132,6 +132,7 @@ int Detail(char *dev, int brief, int test)
if (brief)
printf("ARRAY %s level=%s num-devices=%d", dev, c?c:"-unknown-",array.raid_disks );
else {
+ mdu_bitmap_file_t bmf;
unsigned long array_size;
unsigned long long larray_size;
struct mdstat_ent *ms = mdstat_read(0);
@@ -176,6 +177,12 @@ int Detail(char *dev, int brief, int test)
printf(" Persistence : Superblock is %spersistent\n",
array.not_persistent?"not ":"");
printf("\n");
+ if (ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 &&
+ bmf.pathname[0]) {
+ printf(" Intent Bitmap : %s\n", bmf.pathname);
+ printf("\n");
+ } else if (array.state & (1<<MD_SB_BITMAP_PRESENT))
+ printf(" Intent Bitmap : Internal\n\n");
atime = array.utime;
printf(" Update Time : %.24s\n", ctime(&atime));
printf(" State : %s%s%s\n",