Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Added the -F flag in mkfs.ext4 command. #131

Merged
merged 1 commit into from
Jul 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/dm/dm.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func mkfs(device blockDevice) error {
mkfsArgs := []string{
"-I",
"256",
"-F",
"-E",
"lazy_itable_init=0,lazy_journal_init=0",
device.Path(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/metadata/imgmd/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (md *Image) AllocateAndFormat() error {

// Use mkfs.ext4 to create the new image with an inode size of 256
// (gexto doesn't support anything but 128, but as long as we're not using that it's fine)
if _, err := util.ExecuteCommand("mkfs.ext4", "-I", "256", "-E", "lazy_itable_init=0,lazy_journal_init=0", p); err != nil {
if _, err := util.ExecuteCommand("mkfs.ext4", "-I", "256", "-F", "-E", "lazy_itable_init=0,lazy_journal_init=0", p); err != nil {
return errors.Wrapf(err, "failed to format image %s", md.GetUID())
}

Expand Down