-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
082ba82
commit a202767
Showing
5 changed files
with
131 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
use dbg_hex::dbg_hex; | ||
|
||
mod disk; | ||
mod ext4; | ||
|
||
use ext4::LoadAble; | ||
|
||
fn main() -> std::io::Result<()> { | ||
let _sda1 = "../iso/sda1.img"; | ||
let _nvme = "/dev/nvme0n1p3"; | ||
let mut d = disk::Disk::new(_sda1); | ||
let _pen = "../iso/pen.img"; | ||
|
||
let mut d = disk::Disk::new(_nvme); | ||
|
||
let inode = match std::env::args().nth(1) { | ||
Some(x) => x.parse().unwrap(), | ||
None => 2, | ||
}; | ||
|
||
d.read_dir(inode); | ||
|
||
let i2 = d.get_inode(2); | ||
dbg!(i2); | ||
Ok(()) | ||
} |