Skip to content

Commit ae32c57

Browse files
committed
fix: Fix exfat formatting failure
"mkfs.exfat -V" returns 1 in exfatprogs and 0 in the exfat-utils package. To ensure compatibility with both packages, we only check if "mkfs.exfat" exists. Log: Adapt to exfatprogs Bug: https://pms.uniontech.com/bug-view-338971.html
1 parent 39a7722 commit ae32c57

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

service/diskoperation/filesystems/exfat.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ FS ExFat::getFilesystemSupport()
2525

2626
QString output, error;
2727
if (!Utils::findProgramInPath("mkfs.exfat").isEmpty()) {
28-
qDebug() << "mkfs.exfat found, checking version for create support";
29-
if (Utils::executCmd("mkfs.exfat -V", output, error) == 0) {
30-
qDebug() << "mkfs.exfat version check successful, enabling create support";
31-
fs.create = FS::EXTERNAL;
32-
}
28+
qDebug() << "mkfs.exfat found, enabling create support";
29+
fs.create = FS::EXTERNAL;
3330
}
3431

3532
if (!Utils::findProgramInPath("tune.exfat").isEmpty()) {

0 commit comments

Comments
 (0)