[gparted] Recognise HFSX variant as an HFS+ file system (#698876)



commit d44971328aaf7698c28431bc33ac47422ae79546
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Thu Apr 25 21:25:16 2013 +0100

    Recognise HFSX variant as an HFS+ file system (#698876)
    
    Roughly HFSX is a case sensitive version of the HFS+ file system.
    
    Parted reports such a file system as "hfsx" rather than "hfs+".
    
        # mkfs.hfsplus -v "case insensitive hfs+" /dev/sda7
        Initialized /dev/sda7 as a 1024 MB HFS Plus volume
    
        # mkfs.hfsplus -s -v "case sensitive hfs+" /dev/sda8
        Initialized /dev/sda8 as a 1024 MB HFS Plus volume
    
        # parted /dev/sda print
        ...
        Number  Start   End     Size    Type      File system     Flags
        ...
         7      356GB   357GB   1074MB  logical   hfs+
         8      357GB   358GB   1074MB  logical   hfsx
    
        # blkid /dev/sda[78]
        /dev/sda7: LABEL="case insensitive hfs+" TYPE="hfsplus"
        /dev/sda8: LABEL="case sensitive hfs+" TYPE="hfsplus"
    
    Make GParted recognise HFSX file system variants too.
    
    Closes Bug #698876 - GParted fails to recognize HFS+ partition (possible
                         due to disabled journaling)

 src/GParted_Core.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 515ab9e..327a9bd 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1264,6 +1264,7 @@ GParted::FILESYSTEM GParted_Core::get_filesystem( PedDevice* lp_device, PedParti
                else if ( fs_type == "hfs" )
                        return GParted::FS_HFS ;
                else if ( fs_type == "hfs+" ||
+                         fs_type == "hfsx" ||
                          fs_type == "hfsplus" )
                        return GParted::FS_HFSPLUS ;
                else if ( fs_type == "ufs" )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]