From 22ebb65cbbf8b84b77875fbf485510fabd978918 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Mon, 19 Dec 2022 12:09:07 +0000 Subject: [PATCH] Enable repair when checking exfat file systems (!109) GParted's check operation is a check and if possible repair. For most file system types GParted already requests that the file system is repaired. fsck.exfat -y flag has been available since the first release of exfatprogs 1.0.1 [1] so unconditionally add this. [1] exfatprogs 1.0.1 fsck/fsck.c:main() case 'y': https://github.com/exfatprogs/exfatprogs/blob/1.0.1/fsck/fsck.c#L1231 !109 - Enable repair when checking exfat file systems --- src/exfat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exfat.cc b/src/exfat.cc index ada3bbbe..459edfc3 100644 --- a/src/exfat.cc +++ b/src/exfat.cc @@ -197,7 +197,7 @@ bool exfat::write_uuid(const Partition& partition, OperationDetail& operationdet bool exfat::check_repair(const Partition& partition, OperationDetail& operationdetail) { - return ! execute_command("fsck.exfat -v " + Glib::shell_quote(partition.get_path()), + return ! execute_command("fsck.exfat -y -v " + Glib::shell_quote(partition.get_path()), operationdetail, EXEC_CHECK_STATUS|EXEC_CANCEL_SAFE); }