← Back to team overview

touch-packages team mailing list archive

[Bug 1494626] [NEW] 12:04: resize2fs: Ignores size suffix

 

Public bug reported:

"man resize2fs" states "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 practice the suffix appears to be ignored.

$ sudo resize2fs /dev/fujiVG/home 10G
resize2fs 1.42 (29-Nov-2011)
resize2fs: New size smaller than minimum (5124061)

$ sudo dumpe2fs /dev/fujiVG/home | grep 'Block size'
dumpe2fs 1.42 (29-Nov-2011)
Block size:               4096

$ sudo resize2fs  -P /dev/fujiVG/home
resize2fs 1.42 (29-Nov-2011)
Estimated minimum size of the filesystem: 5124061

$ df /home
Filesystem              1K-blocks    Used Available Use% Mounted on
/dev/mapper/fujiVG-home  30963708 2438852  26952120   9% /home
$ df -B 4096 /home
Filesystem              4K-blocks   Used Available Use% Mounted on
/dev/mapper/fujiVG-home   7740927 609713   6738030   9% /home
$ df -B 512 /home
Filesystem              512B-blocks    Used Available Use% Mounted on
/dev/mapper/fujiVG-home    61927416 4877704  53904240   9% /home

** Affects: e2fsprogs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/1494626

Title:
  12:04:  resize2fs: Ignores size suffix

Status in e2fsprogs package in Ubuntu:
  New

Bug description:
  "man resize2fs" states "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 practice the suffix appears to be ignored.

  $ sudo resize2fs /dev/fujiVG/home 10G
  resize2fs 1.42 (29-Nov-2011)
  resize2fs: New size smaller than minimum (5124061)

  $ sudo dumpe2fs /dev/fujiVG/home | grep 'Block size'
  dumpe2fs 1.42 (29-Nov-2011)
  Block size:               4096

  $ sudo resize2fs  -P /dev/fujiVG/home
  resize2fs 1.42 (29-Nov-2011)
  Estimated minimum size of the filesystem: 5124061

  $ df /home
  Filesystem              1K-blocks    Used Available Use% Mounted on
  /dev/mapper/fujiVG-home  30963708 2438852  26952120   9% /home
  $ df -B 4096 /home
  Filesystem              4K-blocks   Used Available Use% Mounted on
  /dev/mapper/fujiVG-home   7740927 609713   6738030   9% /home
  $ df -B 512 /home
  Filesystem              512B-blocks    Used Available Use% Mounted on
  /dev/mapper/fujiVG-home    61927416 4877704  53904240   9% /home

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1494626/+subscriptions