gparted/src
Albert Young 584137b32b Remove prohibited characters from FAT16/32 labels (#755608)
GParted waits forever when attempting to set a FAT16/32 file system
label which contains prohibited characters [1][2].  This is because
mlabel asks a question and is waiting for input.  Force cancelling the
operation doesn't work either as GParted sends signal 2 (interrupt i.e.
[Ctrl-C]) but mtools commands specifically ignores this and a number of
other signals.  Have to kill mlabel with signal 9 (kill) to regain
control of GParted.

Mlabel command with prohibited characters in the label:

    # export MTOOLS_SKIP_CHECK=1
    # mlabel ::"MYLABEL/   " -i /dev/sdb10
    Long file name "MYLABEL/   " contains illegal character(s).
    a)utorename A)utorename-all r)ename R)ename-all
    s)kip S)kip-all q)uit (aArRsSq):

Remove prohibited characters from FAT16/32 file systems labels when
creating and labelling them.  Also upper case the label to meet label
requirements [1][2].  This silently corrects the label and the actual
label applied will be displayed when GParted refreshes after applying
the operation.

[1] Microsoft TechNet: Label
    https://technet.microsoft.com/en-us/library/bb490925.aspx

[2] Replicated in Wikikedia: label (command)
    https://en.wikipedia.org/wiki/Label_%28command%29

Bug 755608 - Labeling fat16/fat32 partitions hangs if certain characters
             included in label
2015-10-04 09:57:07 -06:00
..
.cvsignore added *.swp some modifications to pass 'make distcheck' minor cleanups 2005-11-25 12:59:47 +00:00
Copy_Blocks.cc Fix off by one sector error in GParted internal block copy (#742920) 2015-01-16 11:31:14 +00:00
DMRaid.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Device.cc Display device serial numbers (#751251) 2015-07-01 10:22:47 -06:00
DialogFeatures.cc Use supported_filesystem() predicate (#738471) 2014-10-30 09:55:01 -06:00
DialogManageFlags.cc Stop copying selected partition object in Manage Flags dialog (#750168) 2015-06-10 10:44:33 -06:00
Dialog_Base_Partition.cc Rename Dialog_Base_Partition member to new_partition 2015-06-10 10:44:33 -06:00
Dialog_Disklabel.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Dialog_FileSystem_Label.cc Rename class to Dialog_FileSystem_Label (#741424) 2015-02-01 10:08:23 -07:00
Dialog_Partition_Copy.cc Remove Set_Data() from the copy, resize/move and new dialog class APIs 2015-06-10 10:44:33 -06:00
Dialog_Partition_Info.cc Display list of Logical Volumes in the Partition Information dialog (754649) 2015-09-15 20:12:12 +01:00
Dialog_Partition_Name.cc Make support of naming for other partition table types possible (#746214) 2015-03-25 10:02:42 -06:00
Dialog_Partition_New.cc Remove Set_Data() from the copy, resize/move and new dialog class APIs 2015-06-10 10:44:33 -06:00
Dialog_Partition_Resize_Move.cc Remove Set_Data() from the copy, resize/move and new dialog class APIs 2015-06-10 10:44:33 -06:00
Dialog_Progress.cc Change OperationDetail to not store complex objects in STL containers (#729139) 2014-05-18 10:07:45 -06:00
Dialog_Rescue_Data.cc Add whole_device flag to the partition object (#743181) 2015-03-09 11:04:13 -06:00
DrawingAreaVisualDisk.cc Store pointers to partition objects in DrawingAreaVisualDisk (#750168) 2015-06-10 10:43:14 -06:00
FS_Info.cc Workaround older blkid not distinguishing between FAT16 and FAT32 (#743181) 2015-03-09 11:04:13 -06:00
FileSystem.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
Frame_Resizer_Base.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Frame_Resizer_Extended.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
GParted_Core.cc Remove "Skip setting unsupported partition flag" message 2015-08-08 09:55:42 -06:00
HBoxOperations.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
LVM2_PV_Info.cc Display list of Logical Volumes in the Partition Information dialog (754649) 2015-09-15 20:12:12 +01:00
Makefile.am Add support for GPT partition names (#741424) 2015-02-01 10:08:23 -07:00
Operation.cc Replace Operation class members index and index_extended with local variables (#755214) 2015-09-28 11:02:07 -06:00
OperationChangeUUID.cc Share duplicate code substituting partitions in multiple operations (#755214) 2015-09-28 10:41:39 -06:00
OperationCheck.cc Encapsulate operation merging inside the Operation* classes (#755214) 2015-09-28 10:41:39 -06:00
OperationCopy.cc Fix visually re-applying copy new operation in create-copy-grow-first sequence (#755214) 2015-09-28 11:01:49 -06:00
OperationCreate.cc Move code visually re-applying create operation into parent class (#755214) 2015-09-28 10:41:39 -06:00
OperationDelete.cc Replace Operation class members index and index_extended with local variables (#755214) 2015-09-28 11:02:07 -06:00
OperationDetail.cc Change OperationDetail to not store complex objects in STL containers (#729139) 2014-05-18 10:07:45 -06:00
OperationFormat.cc Share duplicate code substituting partitions in multiple operations (#755214) 2015-09-28 10:41:39 -06:00
OperationLabelFileSystem.cc Share duplicate code substituting partitions in multiple operations (#755214) 2015-09-28 10:41:39 -06:00
OperationNamePartition.cc Share duplicate code substituting partitions in multiple operations (#755214) 2015-09-28 10:41:39 -06:00
OperationResizeMove.cc Replace Operation class members index and index_extended with local variables (#755214) 2015-09-28 11:02:07 -06:00
Partition.cc Add whole_device flag to the partition object (#743181) 2015-03-09 11:04:13 -06:00
PipeCapture.cc Don't hang reading binary data from command output (#751251) 2015-07-01 10:22:57 -06:00
Proc_Partitions_Info.cc Recognise NVME devices (#755022) 2015-09-21 09:47:31 -06:00
TreeView_Detail.cc Store pointers to partition objects in TreeView_Details (#750168) 2015-06-10 10:43:14 -06:00
Utils.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
Win_GParted.cc Remove unused index parameter from Add_Operation() (#755214) 2015-09-28 11:02:07 -06:00
btrfs.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
exfat.cc Make partition busy detection method selectable per file system (#723842) 2014-07-28 10:03:16 -06:00
ext2.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
f2fs.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
fat16.cc Remove prohibited characters from FAT16/32 labels (#755608) 2015-10-04 09:57:07 -06:00
hfs.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
hfsplus.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
jfs.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
linux_swap.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
lvm2_pv.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
main.cc Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
nilfs2.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
ntfs.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
reiser4.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00
reiserfs.cc Implement shell style exit status decoding (#754684) 2015-09-21 10:11:19 -06:00
ufs.cc Make partition busy detection method selectable per file system (#723842) 2014-07-28 10:03:16 -06:00
xfs.cc Time and check nearly all file system action commands (#754684) 2015-09-21 10:11:19 -06:00