Получить различия между двумя папками и скопировать результаты в третью папку

Это уже обсуждалось здесь.:Таблица файлов находится в файловой системе или в памяти?

Это кажется довольно тщательным. Но это все еще хороший вопрос. Как видите, вопрос на самом деле более детальный, чем предполагает ваш вопрос.

http://140.120.7.21/LinuxKernel/LinuxKernel/node17.htmlэто более техническое объяснение, которое, кажется, охватывает тот же вопрос, с тем же ответом, есть таблицы inode в памяти и на диске, разных типов, если я правильно понял. Это с 2008 года, но я подозреваю, что, по крайней мере, для файловых систем ext мало что изменилось, хотя я не знаю этого наверняка.

Старое объяснение ядра на самом деле неплохо:

An ordinary file is just a sequence of data bytes stored in some physical device without any name attached to it. The administrative information of this file, such as owner, permissions, size, times, etc., is stored in the inode structure of the file. All of the file system's inodes are collected together to form an inode table. Each file system occupies a logical disk. Starting from the $2^{nd}$ block of a logical disk, the kernel stores the inode table of the file system in a consecutive disk blocks. Each inode, an entry in the inode table, is a data structure which the system uses to store the following information about a file:

....

Finally, there is one more inode structure defined in the Linux source tree (include/linux/fs.h). This is the In-Core inode, i.e. the inode structure loaded in the memory. When loading this In-Core inode, the relative disk inode information is filled in its relative fields.

0
03.12.2019, 07:59
0 ответов

Теги

Похожие вопросы