ext4-online-defrag test doesn't work due to too old e4defrag command
Hi,
I tried to test ext4-online-defrag, but it didn't work well due to the following errors:
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 2, block size: 1024
"/opt/ltp/testcases/bin/mnt_point/data0"
File is not regular file [ NG ]
Failed to defrag:Bad file descriptor [ NG ]
Failed to defrag:Bad file descriptor [ NG ]<snip>
Failed to defrag:Bad file descriptor [ NG ]
Failed to defrag:Bad file descriptor [ NG ]
ext4-online-defrag 2 TPASS : ext4 online defrag test pass
This is because e4defrag is too old to defrag the file in the latest kernel. I think we should use the latest e4defrag command that is contained in e2fsprogs.
Regards,
Kazuya Mio
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi Kazuya:
Quoted 10 lines
Hi,
I tried to test ext4-online-defrag, but it didn't work well due to the following errors:
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 2, block size: 1024
"/opt/ltp/testcases/bin/mnt_point/data0"File is not regular file [ NG ] Failed to defrag:Bad file descriptor [ NG ] Failed to defrag:Bad file descriptor [ NG ]
Quoted 7 lines
<snip>
Failed to defrag:Bad file descriptor [ NG ]
Failed to defrag:Bad file descriptor [ NG ]
ext4-online-defrag 2 TPASS : ext4 online defrag test passThis is because e4defrag is too old to defrag the file in the latest kernel. I think we should use the latest e4defrag command that is contained in e2fsprogs.
Are you sure that the latest e4defrag can PASS? Did you test with it already?
Thanks
-Wanlong Gao
Quoted 4 lines
Regards,
Kazuya Mio
Quoted 11 lines
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 17 lines · Wanlong Gao
Hi Kazuya:
Quoted 15 lines
Hi,
I tried to test ext4-online-defrag, but it didn't work well due to the following errors:
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 2, block size: 1024
"/opt/ltp/testcases/bin/mnt_point/data0"File is not regular file [ NG ] Failed to defrag:Bad file descriptor [ NG ] Failed to defrag:Bad file descriptor [ NG ]<snip>
Failed to defrag:Bad file descriptor [ NG ]
Failed to defrag:Bad file descriptor [ NG ]
ext4-online-defrag 2 TPASS : ext4 online defrag test pass
Quoted 5 lines
Quoted 2 lines
This is because e4defrag is too old to defrag the file in the latest kernel. I think we should use the latest e4defrag command that is contained in e2fsprogs.
Are you sure that the latest e4defrag can PASS? Did you test with it already?
Yes. I tested the latest e2fsprogs (commit:499d5ec558). I confirmed that e4defrag works fine.
However, ext4-online-defrag test suite detects fsck error because it deletes lost+found directory in ext4.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH] ext4-online-defrag: use the e4defrag from local system
In reply to a message not in the archiveHi!
Quoted 9 lines
Remove the out-of-dated e4defrag prog, and use the e4defrag we installed own.
Note:As Kazuya said, e4defrag here is too old to defrag the file in the latest kernel. We should use the latest e4defrag command that is contained in e2fsprogs. So, when testing, install the lastest e2fsprogs by self.
Signed-off-by Wanlong Gao <[email protected]>
Commited, thanks.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list