Maintained label and uuid when resizing swap
svn path=/trunk/; revision=1105
This commit is contained in:
parent
5b9183ca26
commit
bbff867267
|
@ -1,5 +1,8 @@
|
||||||
2009-03-23 Curtis Gedak <gedakc@gmail.com>
|
2009-03-23 Curtis Gedak <gedakc@gmail.com>
|
||||||
|
|
||||||
|
* src/linux_swap.cc: Maintained label and uuid when resizing swap.
|
||||||
|
- Closes GParted bug #575585
|
||||||
|
|
||||||
* src/DMRaid.cc: Fixed error when resizing an extended partition.
|
* src/DMRaid.cc: Fixed error when resizing an extended partition.
|
||||||
|
|
||||||
2009-03-16 Curtis Gedak <gedakc@gmail.com>
|
2009-03-16 Curtis Gedak <gedakc@gmail.com>
|
||||||
|
|
|
@ -77,16 +77,13 @@ bool linux_swap::resize( const Partition & partition_new, OperationDetail & oper
|
||||||
/*TO TRANSLATORS: looks like create new linux-swap file system */
|
/*TO TRANSLATORS: looks like create new linux-swap file system */
|
||||||
operationdetail .add_child( OperationDetail(
|
operationdetail .add_child( OperationDetail(
|
||||||
String::ucompose( _("create new %1 file system"), Utils::get_filesystem_string( FS_LINUX_SWAP ) ) ) ) ;
|
String::ucompose( _("create new %1 file system"), Utils::get_filesystem_string( FS_LINUX_SWAP ) ) ) ) ;
|
||||||
if ( create( partition_new, operationdetail .get_last_child() ) )
|
|
||||||
{
|
//Maintain label and uuid when recreating swap
|
||||||
operationdetail .get_last_child() .set_status( STATUS_SUCCES ) ;
|
Glib::ustring command = "mkswap -L \"" + partition_new .label + "\" -U \"" + partition_new .uuid + "\" " + partition_new .get_path() ;
|
||||||
return true ;
|
bool exit_status = ! execute_command( command , operationdetail .get_last_child() ) ;
|
||||||
}
|
|
||||||
else
|
operationdetail .get_last_child() .set_status( exit_status ? STATUS_SUCCES : STATUS_ERROR ) ;
|
||||||
{
|
return exit_status ;
|
||||||
operationdetail .get_last_child() .set_status( STATUS_ERROR ) ;
|
|
||||||
return false ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool linux_swap::copy( const Glib::ustring & src_part_path,
|
bool linux_swap::copy( const Glib::ustring & src_part_path,
|
||||||
|
|
Loading…
Reference in New Issue