Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th March 2012, 09:00 PM
KBerger Offline
Registered User
 
Join Date: Jul 2011
Posts: 8
linuxfirefox
where is namei.c and others in kernel source tree?

Hi everyone .

Just couldn't find this elsewhere, nor do I know where to look for. So could someone, please, tell me, where the C files from the FS directory are gone? Files like namei.c and others?
I'm talking about the Fedora kernel source tree installed from kernel-devel package.

Cause there in the FS directory there are only folders for respective filesystems, each one holding just Kconfig and Makefile. So where are the files gone?

thanks for reply,
Kostya
Reply With Quote
  #2  
Old 10th March 2012, 09:14 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: where is namei.c and others in kernel source tree?

From my F16 install..
Code:
BASH:~/-> yum provides */namei.c
Loaded plugins: langpacks, presto
kcbench-data-2.6.38-0.1-8.fc15.noarch : Kernel sources from 2.6.38 to be used by kcbench
Repo        : fedora
Matched from:
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ext4/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ocfs2/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/squashfs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/isofs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/exofs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/minix/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/hpfs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/efs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/udf/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/reiserfs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ext2/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/affs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/sysv/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ufs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ntfs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/qnx4/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/nilfs2/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/jfs/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/cachefiles/namei.c
Filename    : /usr/share/kcbench-data/linux-2.6.38/fs/ext3/namei.c
This shows that namei.c is not available in the kernel-devel or kernel-headers packages.
Also, if the file exists on your system.....do:
Code:
su
updatedb
locate namei.c

Last edited by PabloTwo; 10th March 2012 at 09:17 PM.
Reply With Quote
  #3  
Old 10th March 2012, 09:42 PM
KBerger Offline
Registered User
 
Join Date: Jul 2011
Posts: 8
linuxfirefox
Re: where is namei.c and others in kernel source tree?

Thanks for reply ,
Yea, sure I used locate to locate namei.c before posting to the forum. I usually don't post to the forum unless I've exhausted all the online resources. But this time I can't find anyting to the point.

What seems perplexing to me, kernel-devel along with rpmbuild tools and stuff are all installed and I've built a couple of kernels in the past...
The question only arose when I tried to add aufs support, then patching the source showed the absense of all the files normally found in the fs folder in vanilla kernel source tree.

Now your yum response (and mine shows the same) says the files belong to the
Quote:
kcbench-data-2.6.38-0.1-8.fc15.noarch : Kernel sources from 2.6.38 to be used by kcbench
From the package description:
Quote:
Description :
Linux Kernel sources 2.6.38 to be compiled by kcbench to benchmark system
performance or test system stability
But I'm NOT going to benchmark my system at all. I'm building a custom kernel, that's all.
And Makefile in the source/fs directory contains this code:
Code:
obj-y :=	open.o read_write.o file_table.o super.o \
		char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
		ioctl.o readdir.o select.o fifo.o dcache.o inode.o \
		attr.o bad_inode.o file.o filesystems.o namespace.o \
		seq_file.o xattr.o libfs.o fs-writeback.o \
		pnode.o drop_caches.o splice.o sync.o utimes.o \
		stack.o fs_struct.o statfs.o
Meaning that it IS going to create a namei.o, so namei.c must be somewhere around.
So my question remains the same: where is it then?
And where can I read about the changes in Fedora kernel packaging, compared to the vanilla kernel? Just couldn't find anything in Documentation that comes with kernel-doc package...

Thanks for reply,
Kostya
Reply With Quote
  #4  
Old 11th March 2012, 01:14 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: where is namei.c and others in kernel source tree?

They are in the kernel SOURCE package - so 'yum provides' won't work.
Here - each filesystem roughtly has a namei.c .

./fs/sysv/namei.c
./fs/ext3/namei.c
./fs/qnx4/namei.c
./fs/squashfs/namei.c
./fs/ext4/namei.c
./fs/affs/namei.c
./fs/ocfs2/namei.c
./fs/exofs/namei.c
./fs/namei.c
./fs/reiserfs/namei.c
./fs/hpfs/namei.c
./fs/cachefiles/namei.c
./fs/efs/namei.c
./fs/udf/namei.c
./fs/minix/namei.c
./fs/nilfs2/namei.c
./fs/ufs/namei.c
./fs/isofs/namei.c
./fs/jfs/namei.c
./fs/ntfs/namei.c
./fs/ext2/namei.c


---------- Post added at 09:14 PM ---------- Previous post was at 09:11 PM ----------

This will pull the kernel source rpm into /tmp ...
yumdownloader --source --destdir /tmp kernel
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #5  
Old 11th March 2012, 03:01 AM
KBerger Offline
Registered User
 
Join Date: Jul 2011
Posts: 8
linuxfirefox
Re: where is namei.c and others in kernel source tree?

Well thank you.

So far I've solved my problem by building custom aufs3-enabled fedora kernel from kernel src rpm.
Anyways, the aufs3 patches imply that all those files reside in the fs folder of the src.

So perhaps, rebuilding from src rpm is the best choice when the source tree gets being tempered with?
Cause I'm unable to trace all changes in Fedora kernel compared to vanilla. Yet it is preferable to run a Fedora kernel on a Fedora system.
Reply With Quote
  #6  
Old 11th March 2012, 05:17 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: where is namei.c and others in kernel source tree?

There isn't that much difference. Especially at the filesystem level.

These changes have been there for quite a while. Each filesystem has it's own namei lookups because each handles lookups differently.
Reply With Quote
  #7  
Old 11th March 2012, 05:21 AM
KBerger Offline
Registered User
 
Join Date: Jul 2011
Posts: 8
linuxfirefox
Re: where is namei.c and others in kernel source tree?

Sorry for a bit of misunderstanding: my mistake was actually to confuse kernel-devel with kernel-source.
And I'm used to having sources in /usr/src/ dir, so I looked there and couldn't find the files.

Now that I looked into ~/rpmbuild/BUILD/*... subdirectory, all the files are in place, that is in the fs folder. It is these files are to be patched by the patches I'm applying.
And the namei.c is in each filesystem's folder, that's another story.

But finally I understand it all.
Problem solved.
Thanks to everyone.
Reply With Quote
Reply

Tags
kernel, nameic, source, tree

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install kernel source tree of fedora 14's current kernel ? kevlin Installation and Live Media 12 9th November 2012 07:25 AM
Nvidia: unable to find kernel source tree... heat84 Hardware & Laptops 19 22nd September 2008 04:23 AM
how to load USB device drivers into kernel source & source tree? im2saxy Installation and Live Media 2 6th May 2007 11:35 AM
Kernel Source Tree Directory Structure Michael Harris Using Fedora 3 22nd February 2006 12:22 AM


Current GMT-time: 05:52 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat