Package: e2fsprogs
Version: 1.39+1.40-WIP-2006.11.14+dfsg-1
Severity: normal
resize2fs isn't honoring the s unit designator. Per resize2fs(8):
The size parameter specifies the requested new size of the
filesystem. If no units are specified, the units of the size
parameter shall be the filesystem blocksize of the filesystem.
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 the test case documented below, it's treating the quantity as units
of 2048 bytes, not as units of 512 bytes.
$ touch test.ext2 /sbin/mke2fs -F -b 4096 test.ext2 4096
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4096 inodes, 4096 blocks
204 blocks (4.98%) reserved for the super user
First data block=0
1 block group
32768 blocks per group, 32768 fragments per group
4096 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
$ /sbin/resize2fs test.ext2 65536s
resize2fs 1.40-WIP (14-Nov-2006)
Resizing the filesystem on test.ext2 to 32768 (4k) blocks.
The filesystem on test.ext2 is now 32768 blocks long.
$ ls -l test.ext2
-rw-r--r-- 1 piranha piranha 134217728 2007-01-24 08:37 test.ext2
$ nickle -e '134217728 / 512' # Calculate resulting sector count.
262144
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-1 ext2 filesystem libraries
ii libblkid 1.39+1.40-WIP-2006.11.14+dfsg-1 block device id library
ii libc62.3.6.ds1-8 GNU C Library: Shared libraries
ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library
ii libss2 1.39+1.40-WIP-2006.11.14+dfsg-1 command-line interface parsing lib
ii libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library
e2fsprogs recommends no packages.
-- no debconf information
--
J.P. Larocque: [EMAIL PROTECTED], [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]