LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Read a directory (https://www.linuxquestions.org/questions/linux-newbie-8/read-a-directory-837585/)

superacct 10-12-2010 08:05 AM

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

prayag_pjs 10-12-2010 08:09 AM

Quote:

Originally Posted by superacct (Post 4124924)
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.

superacct 10-12-2010 11:20 PM

Its a part of kernel source i.e written in C language

Thanks,
Amruta


All times are GMT -5. The time now is 04:26 AM.