Discussion:
Bug#805716: resize2fs: Invalid argument While checking for on-line resizing support
Fathi Boudra
2015-11-21 10:26:20 UTC
Permalink
Subject: resize2fs: Invalid argument While checking for on-line resizing support
Package: e2fsprogs
Version: 1.43~WIP-2015-05-18-1
Severity: normal

Dear Maintainer,

Using latest resize2fs 1.43-WIP (18-May-2015), but same behavior is
observed on Jessie package.

I've run a session (see attachment) on a board with 8G eMMC:
1. resizing partition works fine, it expands as expected
2. resizing the filesystem fails

resize2fs: Invalid argument While checking for on-line resizing support
resize2fs: Invalid argument While trying to add group #25

3. filesystem is actually *partly* resized

Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p9 3.1G 1.2G 1.9G 40% /

4. same steps on same board model with 4G works fine, resize2fs included:

on boot
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p9 2.0G 1.6G 383M 81% /

after running the commands:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p9 3.0G 1.6G 1.5G 52% /

Note: running on arm64 architecture (in case it matters).

Any ideas, what's happening/going wrong?

-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: arm64 (aarch64)
Theodore Ts'o
2016-04-07 21:47:24 UTC
Permalink
Post by Fathi Boudra
Subject: resize2fs: Invalid argument While checking for on-line resizing support
Package: e2fsprogs
Version: 1.43~WIP-2015-05-18-1
Severity: normal
Dear Maintainer,
Using latest resize2fs 1.43-WIP (18-May-2015), but same behavior is
observed on Jessie package.
1. resizing partition works fine, it expands as expected
2. resizing the filesystem fails
resize2fs: Invalid argument While checking for on-line resizing support
resize2fs: Invalid argument While trying to add group #25
What architecture and kernel version were you using this on? I'm not
sure how you got the first error message since the code looks like this:

if ((errno != ENOTTY) && (errno != EINVAL)) {
if (errno == EPERM)
com_err(program_name, 0,
_("Permission denied to resize filesystem"));
else
com_err(program_name, errno,
_("While checking for on-line resizing "
"support"));
exit(1);
}

So if errno is EINVAL, it shouldn't have gotten here. The only thing
I can think of is if you are using a 32-bit binary on a 64-bit kernel,
or some such, and there was more than one error code that would result
in "Invalid argument" getting printed.

- Ted

Loading...