gparted/src
Mike Fleetwood 4a84952058 Avoid detecting exfat-utils commands as exfatprogs commands (#137)
A user had exfat-utils installed and tried to use GParted to create an
exfat file system.  GParted ran this command but it failed:
    # mkfs.exfat -L '' '/dev/sdb1'
    mkexfatfs 1.3.0
    mkfs.exfat: invalid option -- 'L'
    Usage: mkfs.exfat [-i volume-id] [-n label] [-p partition-first-sector] [-s sectors-per-cluster] [-V] <device>

The problem is that both exfat-utils and exfatprogs packages provide
mkfs.exfat and fsck.exfat commands but they have incompatible command
line options and GParted is programmed for exfatprogs.  So far GParted
just checks the executable exists, hence the mis-identification.

Reported version of exfat-utils commands:
    $ mkfs.exfat -V 2> /dev/null
    mkexfatfs 1.3.0
    Copyright (C) 2011-2018  Andrew Nayenko
    $ fsck.exfat -V 2> /dev/null
    exfatfsck 1.3.0
    Copyright (C) 2011-2018  Andrew Nayenko

Reported versions of exfatprogs commands:
    $ mkfs.exfat -V 2> /dev/null
    exfatprogs version : 1.0.4
    $ fsck.exfat -V 2> /dev/null
    exfatprogs version : 1.0.4

Fix this by only enabling exfat support also when the version string of
each command starts "exfatprogs version".  Note that this extra checking
is not needed for tune.exfat because only exfatprogs provides that
executable.

Closes #137 - Creating exfat partition with a label fails with error
2021-02-10 16:51:19 +00:00
..
BlockSpecial.cc Include sys/sysmacros.h for major and minor macros (#776173) 2017-01-04 10:58:44 +00:00
CopyBlocks.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
DMRaid.cc Recognise ATARAID members started by dmraid (#75) 2019-12-02 16:35:22 +00:00
Device.cc Add missing includes into Devices module 2020-05-27 16:02:47 +00:00
DialogFeatures.cc Rename DialogFeatures::treeview_filesystems_Columns member to fsname (!52) 2019-12-04 07:38:01 +00:00
DialogManageFlags.cc Replace deprecated get_vbox() with get_content_area() (!25) 2019-04-27 12:03:05 +01:00
DialogPasswordEntry.cc Use Gtk::Box for DialogPasswordEntry (!25) 2019-04-27 12:03:05 +01:00
Dialog_Base_Partition.cc Set default partition alignment to cylinder for amiga partition table (#116) 2020-11-24 14:42:12 +00:00
Dialog_Disklabel.cc Replace deprecated get_vbox() with get_content_area() (!25) 2019-04-27 12:03:05 +01:00
Dialog_FileSystem_Label.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
Dialog_Partition_Copy.cc Also rename FS.filesystem member to fstype (!52) 2019-12-04 07:37:19 +00:00
Dialog_Partition_Info.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
Dialog_Partition_Name.cc Replace deprecated get_vbox() with get_content_area() (!25) 2019-04-27 12:03:05 +01:00
Dialog_Partition_New.cc Also rename FS.filesystem member to fstype (!52) 2019-12-04 07:37:19 +00:00
Dialog_Partition_Resize_Move.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
Dialog_Progress.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
Dialog_Rescue_Data.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
DrawingAreaVisualDisk.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
FS_Info.cc Remove now unused return value from run_blkid_load_cache() (#131) 2021-02-10 16:30:14 +00:00
FileSystem.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
Frame_Resizer_Base.cc Use Gdk::RGBA (!25) 2019-04-27 12:03:04 +01:00
Frame_Resizer_Extended.cc Use Gdk::RGBA (!25) 2019-04-27 12:03:04 +01:00
GParted_Core.cc Pass device and partition names to blkid (#131) 2021-02-10 16:30:13 +00:00
HBoxOperations.cc Use Gtk::Box for HBoxOperations (!25) 2019-04-27 12:03:04 +01:00
LUKS_Info.cc Update comment with example LUKS_Info cache entry 2017-05-21 09:44:20 -06:00
LVM2_PV_Info.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
Makefile.am Split FILESYSTEMS and FILESYSTEM_MAP into separate module (!49) 2019-11-09 17:18:34 +00:00
MenuHelpers.cc Ensure icon sizes (#39) 2019-04-06 11:42:28 +01:00
Mount_Info.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
Operation.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
OperationChangeUUID.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationCheck.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationCopy.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationCreate.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationDelete.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationDetail.cc Make OperationDetail no_more_children bug message translatable (#790842) 2017-12-04 13:32:21 -07:00
OperationFormat.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
OperationLabelFileSystem.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationNamePartition.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OperationResizeMove.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
OptionComboBox.cc modern-gtk2: Delay construction of Gtk::TreeModel* objects (!17) 2018-11-12 21:50:42 +00:00
Partition.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
PartitionLUKS.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
PartitionVector.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
PasswordRAMStore.cc Fix null pointer check accidentally disabled (#796293) 2018-05-21 13:37:01 +01:00
PipeCapture.cc Further improve speed of PipeCapture for non-watched output (#777973) 2017-06-02 11:47:35 -06:00
Proc_Partitions_Info.cc Read partition names from /proc/partitions too (#131) 2021-02-10 16:30:13 +00:00
ProgressBar.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
SWRaid_Info.cc Display correct type of mdadm recognised ATARAID members (#75) 2019-12-02 16:35:22 +00:00
SupportedFileSystems.cc Also rename FS.filesystem member to fstype (!52) 2019-12-04 07:37:19 +00:00
TreeView_Detail.cc Rename TreeView_Detail::treeview_filesystems_Columns member to fsname (!52) 2019-12-04 07:38:01 +00:00
Utils.cc White space tidy-up of Utils::get_filesystem_software() 2021-01-15 19:55:17 +00:00
Win_GParted.cc Replace Win_GParted::hbox member with local variables 2021-02-10 16:30:14 +00:00
btrfs.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
exfat.cc Avoid detecting exfat-utils commands as exfatprogs commands (#137) 2021-02-10 16:51:19 +00:00
ext2.cc Rename local variables to mke2fs_*_ver 2020-02-28 17:37:32 +00:00
f2fs.cc Drop fsck.f2fs -y option not available before f2fs-tools 1.10.0 (!29) 2019-03-26 08:08:10 +00:00
fat16.cc Raise minimum supported dosfstools to 3.0.18 (!57) 2020-02-28 17:37:32 +00:00
hfs.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
hfsplus.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
jfs.cc Add missing includes into jfs.cc 2019-11-14 17:12:06 +00:00
linux_swap.cc Replace String::ucompose() with Glibmm equivalent (#46) 2019-03-27 16:45:22 +00:00
luks.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
lvm2_pv.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
main.cc Also write "Root privileges are required ..." message to stderr (!34) 2019-04-03 20:45:31 +00:00
minix.cc Add support for minix file system (!12) 2018-08-24 20:22:08 +01:00
nilfs2.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
ntfs.cc Fix reading NTFS usage after resize (#57) 2019-05-28 16:01:25 +00:00
reiser4.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
reiserfs.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00
udf.cc Rename Partition.filesystem member to fstype (!52) 2019-12-03 13:24:44 +00:00
xfs.cc port-to-gtk3: Rework Glibmm header includes (#7) 2019-02-11 08:57:18 +00:00