]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Examine.c
mdadm-0.7.1
[thirdparty/mdadm.git] / Examine.c
index c8fbfbbb07d299bafbd73dfea2826e37a3ea367d..0473dc16f0b849063859b61b7c9eb5ca43667ebd 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -1,5 +1,5 @@
 /*
- * mdctl - manage Linux "md" devices aka RAID arrays.
+ * mdadm - manage Linux "md" devices aka RAID arrays.
  *
  * Copyright (C) 2001-2002 Neil Brown <neilb@cse.unsw.edu.au>
  *
@@ -27,7 +27,7 @@
  *           Australia
  */
 
-#include       "mdctl.h"
+#include       "mdadm.h"
 #include       "dlink.h"
 
 #if ! defined(__BIG_ENDIAN) && ! defined(__LITTLE_ENDIAN)
@@ -50,7 +50,7 @@ int Examine(mddev_dev_t devlist, int brief, char *conffile)
         *
         *   utime, state etc
         *
-        * If (brief) gather devices for same array and just print a mdctl.conf line including devices=
+        * If (brief) gather devices for same array and just print a mdadm.conf line including devices=
         * if devlist==NULL, use conf_get_devs(
         */
        int fd; 
@@ -154,7 +154,7 @@ int Examine(mddev_dev_t devlist, int brief, char *conffile)
                        printf("  Creation Time : %.24s\n", ctime(&atime));
                        c=map_num(pers, super.level);
                        printf("     Raid Level : %s\n", c?c:"-unknown-");
-                       printf("    Device Size : %d%s\n", super.size, human_size(super.size));
+                       printf("    Device Size : %d%s\n", super.size, human_size((long long)super.size<<10));
                        printf("     Raid Disks : %d\n", super.raid_disks);
                        printf("    Total Disks : %d\n", super.nr_disks);
                        printf("Preferred Minor : %d\n", super.md_minor);