add inode doc comment (copied from osdev)
This commit is contained in:
parent
e0163e2b9e
commit
a19d8b205a
|
@ -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)
|
||||||
|
|
Reference in a new issue