mke2fs


Description:

[ Version ( since = "1.19.44" ) ]
public bool mke2fs (string device, Mke2fs? optargs) throws Error

create an ext2/ext3/ext4 filesystem on device

mke2fs is used to create an ext2, ext3, or ext4 filesystem on device.

The optional blockscount is the size of the filesystem in blocks. If omitted it defaults to the size of device. Note if the filesystem is too small to contain a journal, mke2fs will silently create an ext2 filesystem instead.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsMke2fs containing optional arguments

Returns:

true on success, false on error




2022 vala-language.org