From 92f8f8170e136aab8a078f16b6680b092f362278 Mon Sep 17 00:00:00 2001 From: pigeonmoelleux <pigeonmoelleux@crans.org> Date: Thu, 18 May 2023 19:33:22 +0200 Subject: [PATCH] feat: preparation for the FS --- src/fs/mod.rs | 5 +++++ src/fs/node.rs | 3 +++ src/kernel/device/mod.rs | 3 ++- src/main.rs | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/fs/mod.rs create mode 100644 src/fs/node.rs diff --git a/src/fs/mod.rs b/src/fs/mod.rs new file mode 100644 index 0000000..0e52c29 --- /dev/null +++ b/src/fs/mod.rs @@ -0,0 +1,5 @@ +//! Everything related to the File System (fs) +//! +//! Contains modules for the Virtual File System (vfs) and an ext2 implementations + +pub mod node; diff --git a/src/fs/node.rs b/src/fs/node.rs new file mode 100644 index 0000000..04f304b --- /dev/null +++ b/src/fs/node.rs @@ -0,0 +1,3 @@ +//! Interface for files, directories and symbolic links +//! +//! The general structure of the file systems is the Node Graph in Unix style. diff --git a/src/kernel/device/mod.rs b/src/kernel/device/mod.rs index 7c98a7c..f0648a7 100644 --- a/src/kernel/device/mod.rs +++ b/src/kernel/device/mod.rs @@ -7,7 +7,8 @@ use conquer_once::spin::OnceCell; use log::info; use spin::Mutex; -use crate::kernel::device::ata::IdeController; +use crate::kernel::device::ata::{IdeController, BLOCK_SIZE}; +use crate::println; #[allow(clippy::same_name_method)] mod ata; diff --git a/src/main.rs b/src/main.rs index 357314d..af1b0a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,6 +66,7 @@ extern crate alloc; mod encoding; +mod fs; mod kernel; mod macros; mod mutex; -- GitLab