gparted r1045 - in trunk: . src



Author: gedakc
Date: Wed Jan 28 17:48:40 2009
New Revision: 1045
URL: http://svn.gnome.org/viewvc/gparted?rev=1045&view=rev

Log:
Fixed partition type for linux-swap(new).

Modified:
   trunk/ChangeLog
   trunk/src/GParted_Core.cc

Modified: trunk/src/GParted_Core.cc
==============================================================================
--- trunk/src/GParted_Core.cc	(original)
+++ trunk/src/GParted_Core.cc	Wed Jan 28 17:48:40 2009
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
+/* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Bart Hakvoort
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -1967,7 +1967,12 @@
 		PedFileSystemType * fs_type = 
 			ped_file_system_type_get( Utils::get_filesystem_string( partition .filesystem ) .c_str() ) ;
 
+		//If not found, and FS is linux-swap, then try linux-swap(new)
+		if ( ! fs_type && Utils::get_filesystem_string( partition .filesystem ) == "linux-swap" )
+			fs_type = ped_file_system_type_get( "linux-swap(new)" ) ;
+
 		//default is Linux (83)
+		//FIXME:  Currently HFS+ and HFS get set to 83, but should be AF.
 		if ( ! fs_type )
 			fs_type = ped_file_system_type_get( "ext2" ) ;
 



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