Skip to main content
added 172 characters in body
Source Link
Ryan Lyu
  • 234
  • 1
  • 4
  • 11

Imagine I have mounted a hard drive to the location /var/data/ of my Linux server, and I would like to print the content of a file.

cat /var/data/foo.txt 

enter image description here

Ext4 is composed of several sections, for example:

  • super block
  • file system description
  • block bitmap
  • inode bitmap
  • etc.

My questions are:

  1. How does ext4 translate the file name to inode under the hood?
  2. in which section is the file name saved?
  3. in which section is the inode saved?
  4. in which section is the data saved?

Reference

superuser: How does the OS find files in the file system? [closed]

Imagine I have mounted a hard drive to the location /var/data/ of my Linux server, and I would like to print the content of a file.

cat /var/data/foo.txt 

enter image description here

Ext4 is composed of several sections, for example:

  • super block
  • file system description
  • block bitmap
  • inode bitmap
  • etc.

My questions are:

  1. How does ext4 translate the file name to inode under the hood?
  2. in which section is the file name saved?
  3. in which section is the inode saved?
  4. in which section is the data saved?

Imagine I have mounted a hard drive to the location /var/data/ of my Linux server, and I would like to print the content of a file.

cat /var/data/foo.txt 

enter image description here

Ext4 is composed of several sections, for example:

  • super block
  • file system description
  • block bitmap
  • inode bitmap
  • etc.

My questions are:

  1. How does ext4 translate the file name to inode under the hood?
  2. in which section is the file name saved?
  3. in which section is the inode saved?
  4. in which section is the data saved?

Reference

superuser: How does the OS find files in the file system? [closed]

Source Link
Ryan Lyu
  • 234
  • 1
  • 4
  • 11

how does ext4 filesystem respond a retrieve file request under the hood?

Imagine I have mounted a hard drive to the location /var/data/ of my Linux server, and I would like to print the content of a file.

cat /var/data/foo.txt 

enter image description here

Ext4 is composed of several sections, for example:

  • super block
  • file system description
  • block bitmap
  • inode bitmap
  • etc.

My questions are:

  1. How does ext4 translate the file name to inode under the hood?
  2. in which section is the file name saved?
  3. in which section is the inode saved?
  4. in which section is the data saved?