adrian4aes
adrian4aes

Reputation: 869

Where is the code for mounting the ext4 filesystem in the linux kernel?

I am just learning how to modify the linux kernel. I am using gdb in order to debug the kernel remotely but my breakpoints (b console_init, b start_kernel) doesn't work. now I want to try to set a breakpoint when the ext4 filesystem is mounting. Can anyone please tell me where in the code have I to set the breakpoint?

Upvotes: 1

Views: 373

Answers (1)

thkala
thkala

Reputation: 86333

May I suggest running

grep -rn mount /usr/src/linux/fs/ext4/

or even

grep -rn 'mount.*(' /usr/src/linux/fs/ext4/

and going over the results? If you are going to work with the Ext4 code, you should get really familiar with it, anyway...

Upvotes: 1

Related Questions