From d2ab4a1ad7867ad4b7b8c1b2a8eb03ab28ffbe2c Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Wed, 18 Mar 2020 22:37:12 -0400 Subject: [PATCH] Rename inode to node for a more generic filesystem. --- risc_v/src/fs.rs | 2 +- risc_v/src/minixfs.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/risc_v/src/fs.rs b/risc_v/src/fs.rs index 3725daf..e71d8f8 100755 --- a/risc_v/src/fs.rs +++ b/risc_v/src/fs.rs @@ -28,7 +28,7 @@ pub struct Stat { /// A file descriptor pub struct Descriptor { blockdev: usize, - inode: u32, + node: u32, } pub enum FsError { diff --git a/risc_v/src/minixfs.rs b/risc_v/src/minixfs.rs index 4d9769a..79701d7 100755 --- a/risc_v/src/minixfs.rs +++ b/risc_v/src/minixfs.rs @@ -4,6 +4,7 @@ // 16 March 2020 use crate::fs::{Descriptor, FileSystem, Stat, FsError}; +use crate::block; use alloc::string::String; pub const MAGIC: u16 = 0x4d5a;