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
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to