Use symlinks to hfsplus (diskdev_cmds) commands.

Some distributions rename those commands to mkfs.hfsplus and fsck.hfsplus.

BUG: 369288
This commit is contained in:
Andrius Štikonas 2016-09-24 17:10:16 +01:00
parent 07ed3d97cf
commit aa5daf0378
1 changed files with 2 additions and 2 deletions

View File

@ -83,13 +83,13 @@ qint64 hfsplus::maxLabelLength() const
bool hfsplus::check(Report& report, const QString& deviceNode) const
{
ExternalCommand cmd(report, QStringLiteral("fsck_hfs"), { deviceNode });
ExternalCommand cmd(report, QStringLiteral("fsck.hfsplus"), { deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0;
}
bool hfsplus::create(Report& report, const QString& deviceNode)
{
ExternalCommand cmd(report, QStringLiteral("newfs_hfs"), { deviceNode });
ExternalCommand cmd(report, QStringLiteral("mkfs.hfsplus"), { deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0;
}