nilfs2: pass -f to mkfs.nilfs2 to overwrite existing file system
This commit is contained in:
parent
3866bf6fef
commit
2cfcefd9c9
|
@ -117,7 +117,7 @@ bool nilfs2::check(Report& report, const QString& deviceNode) const
|
|||
|
||||
bool nilfs2::create(Report& report, const QString& deviceNode)
|
||||
{
|
||||
ExternalCommand cmd(report, QStringLiteral("mkfs.nilfs2"), { deviceNode });
|
||||
ExternalCommand cmd(report, QStringLiteral("mkfs.nilfs2"), { QStringLiteral("-f"), deviceNode });
|
||||
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue