minor,completely irrelevant change =)

This commit is contained in:
Bart Hakvoort 2004-10-02 19:30:20 +00:00
parent d57a8eced7
commit 530a636ac0
3 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,8 @@
*/
/* READ THIS!!
* Partition isn't really a partition. It's more like a geometry, a continuous part of the disk. I use ut to represent partitions as well as unallocated spaces
* Partition isn't really a partition. It's more like a geometry, a continuous part of the disk.
* I use it to represent partitions as well as unallocated spaces
*/
#ifndef PARTITION
@ -145,7 +146,7 @@ public:
Sector sectors_unused;
Gdk::Color color;
Glib::ustring color_string;
bool inside_extended;//this one is stupid ;-) i use it to check wether unallocated space resides inside extended partition or not.
bool inside_extended;//used to check wether partition resides inside extended partition or not.
bool busy;
Glib::ustring error;
Glib::ustring flags;

View File

@ -521,10 +521,10 @@ Sector Device::Get_Used_Sectors( PedPartition *c_partition, const Glib::ustring
fs = ped_file_system_open( & c_partition ->geom ); //opening a filesystem is *SLOOOWW* :-(
if ( fs )
{
{
constraint = ped_file_system_get_resize_constraint (fs);
ped_file_system_close (fs);
if ( constraint && constraint->min_size != -1 ) //apperantly the compiler evaluates constraint != NULL before the min_size check. Very nice! :D
if ( constraint && constraint->min_size != -1 )
return constraint->min_size ;
}
else

View File

@ -217,7 +217,7 @@ void Dialog_Partition_New::Build_Filesystems_Menu()
filesystems.push_back( "fat16" );
filesystems.push_back( "fat32" );
filesystems.push_back( "linux-swap" );
filesystems.push_back( "ReiserFS" ); //libreiserfs needed
filesystems.push_back( "reiserfs" ); //libreiserfs needed
filesystems.push_back( "extended" ); //convenient ;)
//fill the filesystem menu with those filesystems (except for extended)