Whamcloud - gitweb
ChangeLog, partinfo.c:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 23 May 2001 22:29:22 +0000 (22:29 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 May 2001 22:29:22 +0000 (22:29 +0000)
  partinfo.c (main): Use unsigned long instead of long when querying the
   size of a device using the BLKGETSIZE ioctl, to remove the 1TB limit
   (and turn it into a 2TB limit :-)

misc/ChangeLog
misc/partinfo.c

index 3044d7f..7486f7b 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-23  Theodore Tso  <tytso@valinux.com>
 
+       * partinfo.c (main): Use unsigned long instead of long when
+               querying the size of a device using the BLKGETSIZE ioctl,
+               to remove the 1TB limit (and turn it into a 2TB limit :-)
+
        * fsck.c (compile_fs_type): Fix I18N compilation bug: use N_()
                instead of _() to initialize static variables.
 
index cdb7591..8bdac31 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
 {
        struct hd_geometry loc;
        int fd, i;
-       long size;
+       unsigned long size;
 
 #ifdef ENABLE_NLS
        setlocale(LC_MESSAGES, "");
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
                        continue;
                }
     
-               printf("%s: h=%3d s=%3d c=%4d   start=%8d size=%8d end=%8d\n",
+               printf("%s: h=%3d s=%3d c=%4d   start=%8d size=%8lu end=%8d\n",
                       argv[i], 
                       loc.heads, (int)loc.sectors, loc.cylinders,
                       (int)loc.start, size, (int) loc.start + size -1);