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:
parent
59fe25882a
commit
4d895659d3
12
ChangeLog
12
ChangeLog
|
@ -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,
|
||||
|
|
|
@ -69,7 +69,13 @@ void ext2::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -70,7 +70,13 @@ void ext3::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -70,7 +70,13 @@ void fat16::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -70,7 +70,13 @@ void fat32::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -90,7 +90,13 @@ void jfs::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
10
src/ntfs.cc
10
src/ntfs.cc
|
@ -67,8 +67,14 @@ 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
|
||||
partition .messages .push_back( error ) ;
|
||||
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 )
|
||||
|
|
|
@ -68,7 +68,13 @@ void reiser4::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -73,7 +73,13 @@ void reiserfs::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
|
@ -92,7 +92,13 @@ void xfs::set_used_sectors( Partition & partition )
|
|||
partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
|
||||
}
|
||||
else
|
||||
partition .messages .push_back( error ) ;
|
||||
{
|
||||
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 )
|
||||
|
|
Loading…
Reference in New Issue