be a bit more verbose on errior in set_used_sectors()

* src/ext2.cc
  src/ext3.cc
  src/fat16.cc
  src/fat32.cc
  src/jfs.cc
  src/ntfs.cc
  src/reiser4.cc
  src/reiserfs.cc
  src/xfs.cc: be a bit more verbose on errior in set_used_sectors()
This commit is contained in:
Bart Hakvoort 2006-09-08 20:51:31 +00:00
parent 59fe25882a
commit 4d895659d3
10 changed files with 76 additions and 10 deletions

View File

@ -1,3 +1,15 @@
2006-09-08 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/ext2.cc
src/ext3.cc
src/fat16.cc
src/fat32.cc
src/jfs.cc
src/ntfs.cc
src/reiser4.cc
src/reiserfs.cc
src/xfs.cc: be a bit more verbose on errior in set_used_sectors()
2006-09-08 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/GParted_Core.h,

View File

@ -69,8 +69,14 @@ void ext2::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool ext2::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -70,8 +70,14 @@ void ext3::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool ext3::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -70,8 +70,14 @@ void fat16::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool fat16::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -70,8 +70,14 @@ void fat32::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool fat32::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -90,8 +90,14 @@ void jfs::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool jfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -67,9 +67,15 @@ void ntfs::set_used_sectors( Partition & partition )
if ( N > -1 )
partition .set_used( Utils::round( N / 512.0 ) ) ;
}
else//FIXME: i think it's a good idea to push the output here as well
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool ntfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -68,8 +68,14 @@ void reiser4::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool reiser4::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -73,8 +73,14 @@ void reiserfs::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool reiserfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{

View File

@ -92,8 +92,14 @@ void xfs::set_used_sectors( Partition & partition )
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
}
else
{
if ( ! output .empty() )
partition .messages .push_back( output ) ;
if ( ! error .empty() )
partition .messages .push_back( error ) ;
}
}
bool xfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{