0

I have ext3 file system mounted and I am creating a file on it to understand how block groups are allocated.

I want to know what functions are being called when I create/write a file. I know vfs_write is called and thereafter I am confused what all functions are called. (do_sync_write is mentioned but I am not sure if it's write).

Specifically, I don't want my files to exceed 2 block groups (trying to limit the size. 1 GB contains ~32768 blocks which are of 4K size each). Also, I am new to system programming so any help or direction will be great.

tux3
  • 7,171
  • 6
  • 39
  • 51
yguw
  • 856
  • 6
  • 12
  • 32
  • Have you tried the strace command? – donjuedo Jun 08 '15 at 23:39
  • No, I haven't tried strace yet. I am new to systems programming. Do you recommend trying strace? I can try that. – yguw Jun 08 '15 at 23:41
  • @donjuedo - strace - ok I tried and it will not help. It's good if you need to know how ls is performing, but here I am looking for something which can help me know what functions or methods in kernel are called from vfs_write when write to a file is done. – yguw Jun 08 '15 at 23:49
  • Why do you ask? From a user-land perspective, a `write` is to some opened file descriptor related to a file in a filesystem thru the VFS, and it does not matter if the file sits in some Ext3 filesystem or some VFAT one... – Basile Starynkevitch Jun 11 '15 at 18:35

0 Answers0