Message ID | 4A63F1BD.5080508@gmail.com |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/misc/e4defrag.c b/misc/e4defrag.c index c25514a..eff6ed9 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -1553,7 +1553,11 @@ static int call_defrag(int fd, int donor_fd, const char *file, if (mode_flag & DETAIL) { printf("\n"); PRINT_ERR_MSG_WITH_ERRNO( - "Failed to defrag"); + "Failed to defrag with " + "EXT4_IOC_MOVE_EXT ioctl"); + if (errno == ENOTTY) + printf("\tAt least 2.6.31-rc1 of " + "vanilla kernel is required\n"); } else { printf("\t[ NG ]\n"); }