Thread (4 messages) 4 messages, 2 authors, 2011-11-16

Re: Difference in statvfs(2) block count with ext2 and very recent Linux 3.2.0 kernels

From: Eric Sandeen <hidden>
Date: 2011-11-16 16:33:21

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/16/11 3:54 AM, Richard W.M. Jones wrote:
Hi,

We do some automated testing of the kernel and ext2/3/4 filesystems,
and noticed that the block count returned by statvfs(2) for plain
*ext2* filesystems has changed with the latest 3.2.0rc1 kernel.

This is probably just because of more accurate block accounting, but I
just wanted to check that it isn't a bug.

This posting contains the numbers and a reproducer:

  https://www.redhat.com/archives/libguestfs/2011-November/msg00051.html

Rich.
Note that it is a plain *ext2* filesystem run through the *ext4* driver,
in Fedora, and it was tracked down to commit f975d6bcc7a698a10cc755115e27d3612dcfe322
ext4: teach ext4_statfs() to deal with clusters if bigalloc is enabled
according to the above post...

I will try to look at this to see just why the change affects ext2, unless
Ted knows offhand.

- -Eric


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOw+XNAAoJECCuFpLhPd7g6dEQALFVADUWDdCVtkqO83Zx06eW
Kc64rAU5nl/HMA/BWV7+kwFxcAxuC/TFlvVJ9Prq7chT+8TudssQPmYJqWXQcbBX
42tvwMMZLhdWhfiUNdMFUTGpuVxx5cz7ZQX0tdp4/zxtDlhUJ3lo2jZMFnajvT+I
0k11h8S7DcW8yWYih/aiuY6FUuTJv2LCP7VWVIZTuNW5zjFGHT02KKNtKQ81Fynh
gpyj2kcBhDGYHDS+DYB4Lm54Jeb7ZO7eKUP/n126MXG8hkEuM1nKxAWOFykdkskX
QbH8MgA0wZDiY1WfJCW8wRBPXC9swJr9w/bQotV6TWyEZ97XA82hhF9we6cqvtLW
F+xMzdIRlKHHvpKUmA/FbrfLn2va7dnihE/0FsVD7Twem7vn35sFZFq4UnZxIlCl
fZ92aq0T7Z8AVvqjBtOpnxJNLa7sTYLxqHMRIT7UqI/kaH0py8byh4vdtI+CSdJs
wK8V4e/BNzrzxdh6OqKsoRwfQOsFObKwAcfCGB/bU2x8WYzxdaqqzsroOa99YxLq
kjuXpU8feopiiqy0H4pFj/sJfPpn9L0J0Ppx5sBReuRAPZEkokurZr6t8d6jbwpj
4Wqa5X573zMgypQOCVDNJvEjg5MWrI0SWs8GtiQzZ4shkjBbGaHserOWTNwAaXzi
kaOxCFg3//vsXEE0kx7z
=U1OD
-----END PGP SIGNATURE-----
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help