]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e4defrag: return more specific error message on ioctl failure
authorPeng Tao <bergwolf@gmail.com>
Mon, 13 Dec 2010 14:44:57 +0000 (09:44 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Dec 2010 14:44:57 +0000 (09:44 -0500)
commitae09b934a7e8035edb9f91dd8d39726daa9048f0
treeb7d0b9844914e9be621620c42e08822eb7885b6f
parent43eb2ad47766c18faf39bb15a198a08144a0a707
e4defrag: return more specific error message on ioctl failure

Currently e4defrag relies on the EXT4_IOC_MOVE_EXT ioctl to perform online
defragmentation. However, this iotcl kernel patch is not available before
2.6.30-rc1. e4defrag shall fail without obvious reasons on systems running
older kernels. The patch adds more detailed error message addressing this
issue and prompts users with the minimal kernel version that is needed to
run e4defrag.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e4defrag.c