[gparted] Recognise ReFS file system (#738471)



commit 3373ef07fa33d2840fb0ed8e8d7edd45f17e61cd
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Mon Oct 13 13:20:08 2014 +0100

    Recognise ReFS file system (#738471)
    
    Only recognises ReFS file system.  No other actions are supported.
    Requires blkid from util-linux >= 2.24.
    
    Bug #738471 - ReFS file system is not recognised

 include/Utils.h     |    5 +++--
 src/GParted_Core.cc |    2 ++
 src/Utils.cc        |    8 ++++++--
 3 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/include/Utils.h b/include/Utils.h
index fdb7bad..0948d44 100644
--- a/include/Utils.h
+++ b/include/Utils.h
@@ -90,10 +90,11 @@ enum FILESYSTEM
        FS_LUKS            = 25,
        FS_LINUX_SWRAID    = 26,
        FS_LINUX_SWSUSPEND = 27,
+       FS_REFS            = 28,
 
        // Partition space usage colours
-       FS_USED            = 28,
-       FS_UNUSED          = 29
+       FS_USED            = 29,
+       FS_UNUSED          = 30
 } ;
 
 enum SIZE_UNIT
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 7a44ea8..b6baf4c 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1336,6 +1336,8 @@ GParted::FILESYSTEM GParted_Core::get_filesystem( PedDevice* lp_device, PedParti
                else if ( fs_type == "swsusp" ||
                          fs_type == "swsuspend" )
                        return FS_LINUX_SWSUSPEND ;
+               else if ( fs_type == "ReFS" )
+                       return FS_REFS;
        }
 
 
diff --git a/src/Utils.cc b/src/Utils.cc
index 8204b2e..b2afdb4 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -70,7 +70,9 @@ Glib::ustring Utils::num_to_str( Sector number )
        return ss .str() ;
 }
 
-//use palette from http://developer.gnome.org/hig-book/2.32/design-color.html.en as a starting point.
+// Use palette from GNOME Human Interface Guidelines as a starting point.
+//     http://developer.gnome.org/hig-book/2.32/design-color.html.en
+//     
http://web.archive.org/web/20130922173112/https://developer.gnome.org/hig-book/stable/design-color.html.en
 Glib::ustring Utils::get_color( FILESYSTEM filesystem )
 {
        switch( filesystem )
@@ -90,7 +92,7 @@ Glib::ustring Utils::get_color( FILESYSTEM filesystem )
                case FS_FAT32           : return "#18D918" ;    // ~ medium green
                case FS_EXFAT           : return "#2E8B57" ;    // ~ sea green
                case FS_NILFS2          : return "#826647" ;    //face skin dark
-               case FS_NTFS            : return "#42E5AC" ;    // ~ light turquoise
+               case FS_NTFS            : return "#42E5AC" ;    // ~ light aquamarine
                case FS_REISERFS        : return "#ADA7C8" ;    //purple hilight
                case FS_REISER4         : return "#887FA3" ;    //purple medium
                case FS_XFS                     : return "#EED680" ;    //accent yellow
@@ -105,6 +107,7 @@ Glib::ustring Utils::get_color( FILESYSTEM filesystem )
                case FS_LUKS            : return "#625B81" ;    //purple dark
                case FS_LINUX_SWRAID    : return "#5A4733" ;    // ~ dark brown
                case FS_LINUX_SWSUSPEND : return "#884631" ;    //red dark
+               case FS_REFS            : return "#1FC48D" ;    // ~ medium aquamarine
 
                default                         : return "#000000" ;
        }
@@ -235,6 +238,7 @@ Glib::ustring Utils::get_filesystem_string( FILESYSTEM filesystem )
                case FS_LUKS            : return "crypt-luks" ;
                case FS_LINUX_SWRAID    : return "linux-raid" ;
                case FS_LINUX_SWSUSPEND : return "linux-suspend" ;
+               case FS_REFS            : return "refs" ;
 
                default                 : return "" ;
        }


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