From 0094461f6025892f675393217b925b57d463ccb7 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sat, 27 Feb 2021 12:00:00 +0000 Subject: [PATCH] lvm without arguments has returncode 3 --- src/fs/lvm2_pv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/lvm2_pv.cpp b/src/fs/lvm2_pv.cpp index 96d6ece..c3f8d55 100644 --- a/src/fs/lvm2_pv.cpp +++ b/src/fs/lvm2_pv.cpp @@ -46,7 +46,7 @@ lvm2_pv::lvm2_pv(qint64 firstsector, qint64 lastsector, void lvm2_pv::init() { - CommandSupportType lvmFound = findExternal(QStringLiteral("lvm")) ? cmdSupportFileSystem : cmdSupportNone; + CommandSupportType lvmFound = findExternal(QStringLiteral("lvm"), {}, 3) ? cmdSupportFileSystem : cmdSupportNone; m_Create = lvmFound; m_Check = lvmFound;