Re: [Unionfs] open, readdir in ramfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sunil Agham:
>  and when i invoked "ls" at mount point,  its not invoking open, readdir
> can anyone please help me .

- find which systemcall is issued, by 'strace ls /'
- usually systemcall is implemented as 'sys_<systemcall name>()' kernel
  function, like sys_open().
- usually sys_XXX() calls filesystem specific function via function
  pointer.
- function pointers are registered in 'struct XXX_operations'.
- when the filesystem does not register function pointers, upper layer
  filesystem (VFS) calls generic routine or returns 'not implemented
  error'.
- In ramfs, generic rourintes which are registered as
  'simple_dir_operations' are used. readdir(3), getdents(2),
  sys_getdents64(), vfs_readdir(), file->f_op->readdir() as
  dcache_readdir().
- You will be able to find many things in
  linux/Documentation/filesystems/vfs.txt.


Junjiro Okajima

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux