[LTP] [PATCH 2/3] quotactl08: Use do_mount()
xuyang2018.jy@fujitsu.com
xuyang2018.jy@fujitsu.com
Fri Mar 4 03:57:05 CET 2022
Hi Martin
> On 24. 02. 22 2:47, xuyang2018.jy@fujitsu.com wrote:
>> Hi Petr
>>> to change
>>> quotactl08.c:160: TBROK: mount(/dev/loop0, mntpoint, ext4, 0, (nil)) failed: ESRCH (3)
>> I doubt why fs quota is not supported on this case since we have check
>> kernel config?
>
> In this case, kernel config says that quota is enabled as a module (=M).
> But the module is packaged in a separate RPM and the test is running on
> a minimalistic system where that RPM is not available. Therefore just
> checking the kernel config is not sufficient. We need to query actual
> module presence.
>
> (Sorry for duplicate mail, I forgot to CC the mailing list.)
Oh, I replied the personal mail.
Thanks for your explaination. I don't know this complex situation before.
I think the quota module is belong to kernel-default package but not
belong to kernel-default-base package. So jeos use kernel-default-base
will pass kernel config check but indeed it miss this module.
This problem also occurs on centos if we use module from
kernel-module-extra.
So a better solution is that if the module is belong to
kernel-default-base ,then we can use kconfig check, but if the module is
not belong to kernel-default-base, then use need_driver maybe more correct.
Best Regards
Yang Xu
>
More information about the ltp
mailing list