summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-05-23 22:29:22 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-05-23 22:29:22 +0000
commita9bc79add106f2c544c449f514a1113817deae2e (patch)
treecdc253860654cc57ceae1dc294d43ce2aa242174
parentc7a24e461e024706aab0c698a0638f2ab2ed639f (diff)
downloade2fsprogs-a9bc79add106f2c544c449f514a1113817deae2e.tar.gz
ChangeLog, partinfo.c:
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 :-)
-rw-r--r--misc/ChangeLog4
-rw-r--r--misc/partinfo.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 3044d7f8..7486f7b4 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -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.
diff --git a/misc/partinfo.c b/misc/partinfo.c
index cdb7591a..8bdac314 100644
--- a/misc/partinfo.c
+++ b/misc/partinfo.c
@@ -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);