aboutsummaryrefslogtreecommitdiff
path: root/ext2/src/fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext2/src/fs.rs')
-rw-r--r--ext2/src/fs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext2/src/fs.rs b/ext2/src/fs.rs
index e98a2f840..bd8e0e803 100644
--- a/ext2/src/fs.rs
+++ b/ext2/src/fs.rs
@@ -11,6 +11,7 @@ use base::MemoryMapping;
use base::MemoryMappingBuilder;
use zerocopy::AsBytes;
+use crate::superblock::Config;
use crate::superblock::SuperBlock;
/// A struct to represent an ext2 filesystem.
@@ -20,8 +21,9 @@ pub struct Ext2 {
impl Ext2 {
/// Create a new ext2 filesystem.
- pub fn new() -> Result<Self> {
- let sb = SuperBlock::new()?;
+
+ pub fn new(cfg: &Config) -> Result<Self> {
+ let sb = SuperBlock::new(cfg)?;
Ok(Ext2 { sb })
}