Skip to main content

make_fs

Function make_fs 

Source
pub fn make_fs(
    address: *mut u8,
    devname: &str,
    volname: &str,
    blocksize: usize,
    numblocks: usize,
) -> Result<()>
Expand description

Creates a new file system on a block device or in memory.

For RAM disks, volname must begin with "RAM" (e.g. "RAM0"). If address is null, the OS allocates the memory.