Relations with the block of iNode

After a file is divided into partitions iNode and block, block responsible for storing data, such as pictures, videos and so on. inode is responsible for storing the file attributes, but does not include the file name. iNode relationship with the block like a book catalog and content inside the same. A file must have at least a iNode block with a.
Read the disk is read in accordance with the block, block too large or too small is not very good, although the high reading block excessive rate, but a waste of space, space-saving block, but not good read and write performance!
In a production environment, we usually choose large files to a large block, small file selected small block. block have 1k, 2k, 4k, usually the default is 4k.
Hard and Soft Links distinction:
A hard link is the same iNode nodes, different files, delete hard links or entity in which a source file can not be deleted, hard-linked entity is deleted after that, the space will be occupied by other files
soft link called a symbolic link, iNode different nodes have the same contents of the file, delete the source files, symbolic links automatically deleted.

Guess you like

Origin blog.51cto.com/14480044/2447807