LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2010, 09:05 AM   #1
superacct
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Unhappy Read a directory


Hi,

I want to populate an array of string by files exists in directory on mounting of file system.
I got an entry point for file system mount. I can use either do_mount function or fill_superblock function. But I am not clear about how to call readdir from there itself.
I need inputs for calling readdir from fill_superblock function

Thanks and Regards,
Amruta
 
Old 10-12-2010, 09:09 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Thumbs up

Quote:
Originally Posted by superacct View Post
Hi,

I want to populate an array of string by files exists in directory on mounting of file system.
I got an entry point for file system mount. I can use either do_mount function or fill_superblock function. But I am not clear about how to call readdir from there itself.
I need inputs for calling readdir from fill_superblock function

Thanks and Regards,
Amruta
This post is regarding shell script or function in C language.
Do let us know.
 
Old 10-13-2010, 12:20 AM   #3
superacct
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Its a part of kernel source i.e written in C language

Thanks,
Amruta
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Directory Entries ? bodhankaryogesh Programming 2 04-03-2008 04:01 AM
Why has my /home directory gone read-only!? esme_squalor Linux - General 8 02-17-2006 10:59 AM
php read directory? wh33t Programming 1 07-05-2005 01:44 AM
read filename from directory newbielinux Linux - Newbie 2 03-02-2004 04:48 PM
read directory and subdirectories skora Programming 3 10-27-2003 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration