basic FileSystem trait
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-23 19:47:50 +01:00
1 parent b9e49dd946
commit 8518982932
5 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -13,12 +13,12 @@ use fd::IsoFD;
use alloc::{sync::Arc, boxed::Box};
use async_trait::async_trait;
struct IsoFS {
pub struct IsoFS {
}
#[async_trait]
#[async_trait(?Send)]
impl FileSystem for IsoFS {
async fn open(&mut self, path: &str, flags: u32) -> Option<FDt> {
async fn open(path: &str, flags: u32) -> Option<FDt> {
if flags != crate::syscalls::io::O_RDONLY {
return None;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.