On 13 Mar 2011, at 22:16, Robert P. J. Day wrote:
> On Sun, 13 Mar 2011, Matt Willsher wrote:
>
>>
>>
>> On Mar 13, 2011 8:50 PM, "Robert P. J. Day" <[log in to unmask]> wrote:
>>>
>>> On Sun, 13 Mar 2011, Matt Willsher wrote:
>>>
>>>>
>>>>
>>>> On 13 March 2011 20:30, Robert P. J. Day <[log in to unmask]> wrote:
>>>> as part of my sys admin course this week, i'd like to show the
>>>> students the actual header file that displays the structure of the
>>>> ext4 filesystem (inode, superblock, that sort of thing). but i'm
>>>> not
>>>> sure where that header file is.
>>>>
>>>> i have the kernel-devel and kernel-headers packages installed and
>>>> i
>>>> would have assumed the file (or files) would be somewhere under
>>>> /usr/include/{linux,sys} but i'm just not seeing it. help?
>>>>
>>>>
>>>> It seems to be called ext4.h. Does find /usr/include -name ext4.h
>>>> -print find it?
>>>
>>> i'm just reinstalling in prep for class so i'll check it as soon as
>>> my system is up again. i swear i searched for the pattern *ext4*, so
>>> let's see if it's different this time. thanks.
>>
>> Was that *ext4* single quoted? If not bash seems to grab that glob
>> and find the doesn't get passed what you want (at least I think that
>> is what happens). If you're not too fussy about the source of the
>> file, Google shows up a ext4.h with a search for the same.
>
> currently, i have no ext4.h header file anywhere under /usr/include,
> and i have both packages kernel-devel and kernel-headers installed.
> i'm sure i'm doing something stupid.
Sorry, I replied off list before. I've put it back on in case anyone else can help.
What about the kernel SRPM? In the SL6 kernel SRPM there is a tar.bz2 file which contains the full source including fs/ext4/ext4.h and a bunch of other related headers. SL5 will be similar I would think.
|