gparted/include
Mike Fleetwood 4b72ecd44e Display device serial numbers (#751251)
Run "hdparm -I /dev/DISK" to get the hard drive serial number of
every device which has one and display it in the Device Information.
The displayed value can either be the actual serial number, "none" or
blank.  "none" means the device doesn't have a hard drive serial number,
such as for Linux software RAID arrays, BIOS fake RAID arrays or USB
flash drives.  Blank means something went wrong getting the serial
number.  Either it couldn't be found in the hdparm output or the hdparm
command wasn't installed.

Example real hard drive:
    # hdparm -I /dev/sda
    ...
    ATA device, with non-removable media
            Model Number:       SAMSUNG HM500JI
            Serial Number:      S1WFJDSZ123732
    ...

Example Linux software RAID array:
    # hdparm -I /dev/md127

    /dev/md127:
     HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device

On my desktop with 4 internal hard drives 2 Linux software RAID arrays
on those hard drives, 2 USB flash drives and 1 USB hard drive attached,
running hdparm 9 times added 0.07 seconds to the device refresh time.

Bug 751251 - Show serial number in device information
2015-07-01 10:22:47 -06:00
..
.cvsignore added *.swp some modifications to pass 'make distcheck' minor cleanups 2005-11-25 12:59:47 +00:00
Copy_Blocks.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
DMRaid.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Device.h Display device serial numbers (#751251) 2015-07-01 10:22:47 -06:00
DialogFeatures.h Make the File System Support dialog resizable (#342682) 2014-01-27 10:54:48 -07:00
DialogManageFlags.h Stop copying selected partition object in Manage Flags dialog (#750168) 2015-06-10 10:44:33 -06:00
Dialog_Base_Partition.h Rename Dialog_Base_Partition member to new_partition 2015-06-10 10:44:33 -06:00
Dialog_Disklabel.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Dialog_FileSystem_Label.h Rename class to Dialog_FileSystem_Label (#741424) 2015-02-01 10:08:23 -07:00
Dialog_Partition_Copy.h Remove Set_Data() from the copy, resize/move and new dialog class APIs 2015-06-10 10:44:33 -06:00
Dialog_Partition_Info.h Stop copying selected partition object in Information dialog (#750168) 2015-06-10 10:43:43 -06:00
Dialog_Partition_Name.h Make support of naming for other partition table types possible (#746214) 2015-03-25 10:02:42 -06:00
Dialog_Partition_New.h 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.h Remove Set_Data() from the copy, resize/move and new dialog class APIs 2015-06-10 10:44:33 -06:00
Dialog_Progress.h Change OperationDetail to not store complex objects in STL containers (#729139) 2014-05-18 10:07:45 -06:00
Dialog_Rescue_Data.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
DrawingAreaVisualDisk.h Store pointers to partition objects in DrawingAreaVisualDisk (#750168) 2015-06-10 10:43:14 -06:00
FS_Info.h Workaround older blkid not distinguishing between FAT16 and FAT32 (#743181) 2015-03-09 11:04:13 -06:00
FileSystem.h Add const qualifier to get_custom_text() member functions 2015-05-19 10:34:59 -06:00
Frame_Resizer_Base.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Frame_Resizer_Extended.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
GParted_Core.h Display device serial numbers (#751251) 2015-07-01 10:22:47 -06:00
HBoxOperations.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
LVM2_PV_Info.h Delay loading LVM2_PV_info cache until actually needed (#750582) 2015-06-13 10:56:31 -06:00
Makefile.am Add support for GPT partition names (#741424) 2015-02-01 10:08:23 -07:00
Operation.h Add support for GPT partition names (#741424) 2015-02-01 10:08:23 -07:00
OperationChangeUUID.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationCheck.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationCopy.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationCreate.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationDelete.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationDetail.h Change OperationDetail to not store complex objects in STL containers (#729139) 2014-05-18 10:07:45 -06:00
OperationFormat.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
OperationLabelFileSystem.h Rename class to OperationLabelFileSystem (#741424) 2015-02-01 10:08:23 -07:00
OperationNamePartition.h Add support for GPT partition names (#741424) 2015-02-01 10:08:23 -07:00
OperationResizeMove.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
Partition.h Add whole_device flag to the partition object (#743181) 2015-03-09 11:04:13 -06:00
PipeCapture.h Prevent cross thread write after free in _OnReadable() (#731752) 2014-07-06 10:22:40 -06:00
Proc_Partitions_Info.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
TreeView_Detail.h Store pointers to partition objects in TreeView_Details (#750168) 2015-06-10 10:43:14 -06:00
Utils.h Make support of naming for other partition table types possible (#746214) 2015-03-25 10:02:42 -06:00
Win_GParted.h Assert selected_partition_ptr is valid before use (#750168) 2015-06-10 10:43:40 -06:00
btrfs.h Support changing the UUID of a btrfs file system (#751337) 2015-06-28 10:57:58 -06:00
exfat.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
ext2.h Check for e4fsprogs commands for ext4 support on RHEL/CentOS 5.x (#738706) 2014-10-27 09:32:36 -06:00
f2fs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
fat16.h Add const qualifier to get_custom_text() member functions 2015-05-19 10:34:59 -06:00
hfs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
hfsplus.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
i18n.h Make include guards unique (#539297) 2013-06-05 10:57:39 -06:00
jfs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
linux_swap.h Add const qualifier to get_custom_text() member functions 2015-05-19 10:34:59 -06:00
lvm2_pv.h Add const qualifier to get_custom_text() member functions 2015-05-19 10:34:59 -06:00
nilfs2.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
ntfs.h Add const qualifier to get_custom_text() member functions 2015-05-19 10:34:59 -06:00
reiser4.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
reiserfs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
ufs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00
xfs.h Replace obsolete FSF postal address in copyright notices (#721565) 2014-01-26 10:53:23 +00:00