add inode doc comment (copied from osdev)

This commit is contained in:
Szymon Walter 2018-03-18 19:06:50 +01:00
parent e0163e2b9e
commit a19d8b205a

View file

@ -1,3 +1,10 @@
/// An inode is a structure on the disk that represents a file, directory,
/// symbolic link, etc. Inodes do not contain the data of the file / directory /
/// etc. that they represent. Instead, they link to the blocks that actually
/// contain the data. This lets the inodes themselves have a well-defined size
/// which lets them be placed in easily indexed arrays. Each block group has an
/// array of inodes it is responsible for, and conversely every inode within a
/// file system belongs to one of such tables (and one of such block groups).
#[repr(C, packed)] #[repr(C, packed)]
pub struct Inode { pub struct Inode {
/// Type and Permissions (see below) /// Type and Permissions (see below)