how to query the kernel 

Newsgroups: comp.os.linux.misc
Date: Wed, 09 Apr 2003 17:52:08 +0200
>  I can do a lsmod to find all modules inserted in the kernel
> But If I want to find if my kernel has quota support, which is not a
> module then How do I do it

If you have a up-to-date kernel source tree, the configuration is stored in /usr/src/linux/.config. If not, look into your /boot directory, some distrinutions store a config file there, maybe with another name.

Eggert

how to query the kernel 

> But If I want to find if my kernel has quota support, which is not a
> module then How do I do it

It should have shown up in your boot messages:

dmesg | grep quota

RedHat seems to ship kernels with quota support compiled in. It's an option in the "File Systems" section, can't be "modularized".

Dave Brown

how to query the kernel 

I'd take a look at the actual /boot/System.map* file from the running kernel. Or just remount some FS with the usrquota,grpquota option and see what the kernel is doing.

Michael Heiming