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
This commit is contained in:
parent
a784c5c25d
commit
22ebb65cbb
|
@ -197,7 +197,7 @@ bool exfat::write_uuid(const Partition& partition, OperationDetail& operationdet
|
||||||
|
|
||||||
bool exfat::check_repair(const Partition& partition, OperationDetail& operationdetail)
|
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);
|
operationdetail, EXEC_CHECK_STATUS|EXEC_CANCEL_SAFE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue