tags 594004 +pending
thanks
On Mon, Aug 23, 2010 at 01:09:46AM +0100, Ben Hutchings wrote:
> Package: e2fsprogs
> Version: 1.41.12-2
> Severity: important
>
> resize2fs(8) says:
>
> "Optionally, the size parameter may be suffixed by one of the
> following the units designators: 's', 'K', 'M', or 'G', for 512 byte
> sectors, kilobytes, megabytes, or gigabytes, respectively."
>
> In contrast to hard disk specifications, the suffixes are interpreted
> as base-2 multiples, not base-10 multiples. This could lead to data
> loss when shrinking a filesystem and then separately shrinking the
> partition, if the partitioning tool is not filesystem-aware.
>
> The manual page should state explicitly that the suffixes are
> interpreted as base-2 multiples.
Priority *important*?!?
OK, I'll check in the following patch.
- Ted
commit 63feaa13ab1011b40d59011e6ffdc1a07d3423ac
Author: Theodore Ts'o <[email protected]>
Date: Sat Sep 25 20:23:33 2010 -0400
resize2fs.8: Make it clear that power-of-2 units are meant by kilobytes
It's sad that this needs to be made clear....
Addresses-Debian-Bug: #594004
Signed-off-by: "Theodore Ts'o" <[email protected]>
diff --git a/resize/resize2fs.8.in b/resize/resize2fs.8.in
index 09770e1..214d43c 100644
--- a/resize/resize2fs.8.in
+++ b/resize/resize2fs.8.in
@@ -51,6 +51,14 @@ If
.I size
parameter is not specified, it will default to the size of the partition.
.PP
+Note: when kilobytes is used above, I mean
+.IR real ,
+power-of-2 kilobytes, (i.e., 1024 bytes), which some politically correct
+folks insist should be the stupid-sounding ``kibibytes''. The same
+holds true for megabytes, also sometimes known as ``mebibytes'', or
+gigabytes, as the amazingly silly ``gibibytes''. Makes you want to
+gibber, doesn't it?
+.PP
The
.B resize2fs
program does not manipulate the size of partitions. If you wish to enlarge
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]