You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rwalk@walkubu:/mnt/data3/git2/RustyNode$ sudo target/debug/rusty_node /dev/sdc
thread 'main' panicked at 'ext4 volume: failed to parse superblock
Caused by:
filesystem uses an unsupported feature: "invalid magic number: 0"', src/main.rs:10:63
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
`extern crate ext4;
use std::env;
use std::fs;
fn main() {
let r = fs::File::open(env::args().nth(1).expect("one argument")).expect("openable file");
let mut options = ext4::Options::default();
options.checksums = ext4::Checksums::Enabled;
let vol = ext4::SuperBlock::new_with_options(r, &options).expect("ext4 volume");
let root = vol.root().expect("root");
vol.walk(&root, "/", &mut |_, path, _, _| {
println!("{}", path);
Ok(true)
})
.expect("walk");
}`
The text was updated successfully, but these errors were encountered:
…проверки целостности ext4 образа через feature flags
Merge in CRATES/ext4-rs from feature/cases/PKM-1959 to without_state_verification
* commit 'a6733ca36926e404595d6ceb46998eca8d427c25':
[PKM-1959] Feature flag added for checksums verification
[PKM-1959] Feature flag added for clean state verification
rwalk@walkubu:/mnt/data3/git2/RustyNode$ sudo target/debug/rusty_node /dev/sdc
thread 'main' panicked at 'ext4 volume: failed to parse superblock
Caused by:
filesystem uses an unsupported feature: "invalid magic number: 0"', src/main.rs:10:63
note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace`extern crate ext4;
use std::env;
use std::fs;
fn main() {
let r = fs::File::open(env::args().nth(1).expect("one argument")).expect("openable file");
let mut options = ext4::Options::default();
options.checksums = ext4::Checksums::Enabled;
let vol = ext4::SuperBlock::new_with_options(r, &options).expect("ext4 volume");
let root = vol.root().expect("root");
vol.walk(&root, "/", &mut |_, path, _, _| {
println!("{}", path);
Ok(true)
})
.expect("walk");
}`
The text was updated successfully, but these errors were encountered: