diff --git a/ChangeLog b/ChangeLog index 86f06687..87827f59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-11-14 Curtis Gedak + * include/Utils.h, + src/Utils.cc: Created method get_filesystem_software(). + * src/Win_GParted.cc: Moved menu entry - "Gparted->Show Features" moved to "View->File System Support". diff --git a/include/Utils.h b/include/Utils.h index a7ae3360..37ac5a93 100644 --- a/include/Utils.h +++ b/include/Utils.h @@ -126,6 +126,7 @@ public: static Glib::ustring get_color( FILESYSTEM filesystem ) ; static Glib::RefPtr get_color_as_pixbuf( FILESYSTEM filesystem, int width, int height ) ; static Glib::ustring get_filesystem_string( FILESYSTEM filesystem ) ; + static Glib::ustring get_filesystem_software( FILESYSTEM filesystem ) ; static Glib::ustring format_size( Sector size ) ; static Glib::ustring format_time( std::time_t seconds ) ; static double sector_to_unit( Sector sectors, SIZE_UNIT size_unit ) ; diff --git a/src/Utils.cc b/src/Utils.cc index 55a80529..28d45bff 100644 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -133,6 +133,28 @@ Glib::ustring Utils::get_filesystem_string( FILESYSTEM filesystem ) } } +Glib::ustring Utils::get_filesystem_software( FILESYSTEM filesystem ) +{ + switch( filesystem ) + { + case FS_EXT2 : return "e2fsprogs" ; + case FS_EXT3 : return "e2fsprogs" ; + case FS_FAT16 : return "dosfstools, mtools" ; + case FS_FAT32 : return "dosfstools, mtools" ; + case FS_HFS : return "hfsutils" ; + case FS_HFSPLUS : return "hfsprogs" ; + case FS_JFS : return "jfsutils" ; + case FS_LINUX_SWAP : return "util-linux" ; + case FS_NTFS : return "ntfsprogs" ; + case FS_REISER4 : return "reiser4progs" ; + case FS_REISERFS : return "reiserfsprogs" ; + case FS_UFS : return "" ; + case FS_XFS : return "xfsprogs" ; + + default : return "" ; + } +} + Glib::ustring Utils::format_size( Sector size ) { std::stringstream ss ;