Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The relationship between iNode and block

2025-03-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

After partitioning, a file is divided into iNode and block,block to store data, such as pictures, videos, etc. Inode is responsible for storing the properties of the file, but does not include the file name. The relationship between iNode and block is like the contents and contents of a book. A file must have at least one iNode and one block.

Disk is read according to block, block is too large or too small is not very good, block is too large, although the reading rate is high, but waste space, block saves space, but the read and write performance is not good!

In a production environment, we usually choose a large block for large files and a small block for small files. Block has 1k, 2k, 4k, and usually defaults to 4k.

The difference between hard links and soft links:

Hard links are the same iNode node, different files, delete hard links, or one of the source file entities cannot be deleted. After the hard link entities are deleted, the space will be occupied by other files.

Soft links, also known as symbolic links, are different iNode nodes, with the same file content, delete the source file, the symbolic link is also automatically deleted.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report