miniximg-shell 1.1.0

Interactive REPL for inspecting and editing Minix v1 filesystem images
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `sync` — flush any buffered writes to the image file.

use anyhow::Result;

use crate::session::Session;

pub const NAME: &str = "sync";
pub const ALIASES: &[&str] = &[];
pub const SUMMARY: &str = "flush pending writes to the image file";
pub const USAGE: &str = "sync";

pub fn run(session: &mut Session, _args: &[String]) -> Result<()> {
    session.fs_mut().flush()?;
    Ok(())
}