diff --git a/src/fs/zfs.cpp b/src/fs/zfs.cpp index 7cc56ce..fccf00a 100644 --- a/src/fs/zfs.cpp +++ b/src/fs/zfs.cpp @@ -88,15 +88,15 @@ qint64 zfs::maxCapacity() const bool zfs::remove(Report& report, const QString& deviceNode) const { Q_UNUSED(deviceNode) - ExternalCommand cmd(report, QStringLiteral("zpool"), { QStringLiteral("destroy"), QStringLiteral("-f"), this->label() }); + ExternalCommand cmd(report, QStringLiteral("zpool"), { QStringLiteral("destroy"), QStringLiteral("-f"), label() }); return cmd.run(-1) && cmd.exitCode() == 0; } bool zfs::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) { Q_UNUSED(deviceNode) - ExternalCommand cmd1(report, QStringLiteral("zpool"), { QStringLiteral("export"), this->label() }); - ExternalCommand cmd2(report, QStringLiteral("zpool"), { QStringLiteral("import"), this->label(), newLabel }); + ExternalCommand cmd1(report, QStringLiteral("zpool"), { QStringLiteral("export"), label() }); + ExternalCommand cmd2(report, QStringLiteral("zpool"), { QStringLiteral("import"), label(), newLabel }); return cmd1.run(-1) && cmd1.exitCode() == 0 && cmd2.run(-1) && cmd2.exitCode() == 0; } }