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

Commit

Permalink
Merge pull request #131 from junaid18183/master
Browse files Browse the repository at this point in the history
Added the -F flag in mkfs.ext4 command.
  • Loading branch information
luxas authored Jul 11, 2019
2 parents f60bfee + 61f6f77 commit 4ef5592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 4ef5592

Please sign in to comment.