store libparted error in Partition::error if reading the used/unused space

* src/GParted_Core.cc: store libparted error in Partition::error if
  reading the used/unused space failed.
This commit is contained in:
Bart Hakvoort 2006-04-04 08:59:14 +00:00
parent 7f187d644c
commit 28343faa78
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-04-04 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: store libparted error in Partition::error if
reading the used/unused space failed.
2006-04-03 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/Dialog_Filesystems.h,

View File

@ -948,6 +948,9 @@ void GParted_Core::LP_Set_Used_Sectors( Partition & partition )
}
}
}
if ( partition .sectors_used == -1 )
partition .error = ped_error ;
}
bool GParted_Core::create_empty_partition( Partition & new_partition,