"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/xfs.cc" between
gparted-1.3.0.tar.gz and gparted-1.3.1.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

xfs.cc  (gparted-1.3.0):xfs.cc  (gparted-1.3.1)
skipping to change at line 230 skipping to change at line 230
return success ; return success ;
} }
bool xfs::copy( const Partition & src_part, bool xfs::copy( const Partition & src_part,
Partition & dest_part, Partition & dest_part,
OperationDetail & operationdetail ) OperationDetail & operationdetail )
{ {
bool success = true ; bool success = true ;
success &= ! execute_command( "mkfs.xfs -f " + Glib::shell_quote( dest_pa success &= ! execute_command("mkfs.xfs -f -L " + Glib::shell_quote(dest_p
rt.get_path() ), art.get_filesystem_label()) +
operationdetail, EXEC_CHECK_STATUS|EXEC_CAN " -m uuid=" + Glib::shell_quote(dest_part.uu
CEL_SAFE ); id) +
" " + Glib::shell_quote(dest_part.get_path()
),
operationdetail, EXEC_CHECK_STATUS|EXEC_CANC
EL_SAFE);
if ( ! success ) if ( ! success )
return false ; return false ;
Glib::ustring src_mount_point = mk_temp_dir( "src", operationdetail ) ; Glib::ustring src_mount_point = mk_temp_dir( "src", operationdetail ) ;
if ( src_mount_point .empty() ) if ( src_mount_point .empty() )
return false ; return false ;
dest_mount_point = mk_temp_dir( "dest", operationdetail ); dest_mount_point = mk_temp_dir( "dest", operationdetail );
if ( dest_mount_point .empty() ) if ( dest_mount_point .empty() )
{ {
skipping to change at line 260 skipping to change at line 262
// Get source FS used bytes, needed in progress update calculation // Get source FS used bytes, needed in progress update calculation
Byte_Value fs_size; Byte_Value fs_size;
Byte_Value fs_free; Byte_Value fs_free;
if ( Utils::get_mounted_filesystem_usage( src_mount_point, fs_size, fs_fr ee, error ) == 0 ) if ( Utils::get_mounted_filesystem_usage( src_mount_point, fs_size, fs_fr ee, error ) == 0 )
src_used = fs_size - fs_free; src_used = fs_size - fs_free;
else else
src_used = -1LL; src_used = -1LL;
if ( success ) if ( success )
{ {
success &= ! execute_command( "mount -v -t xfs " + Glib::shell_qu success &= ! execute_command("mount -v -t xfs -o nouuid " + Glib:
ote( dest_part.get_path() ) + :shell_quote(dest_part.get_path()) +
" " + Glib::shell_quote( dest_mount " " + Glib::shell_quote(dest_mount_p
_point ), oint),
operationdetail, EXEC_CHECK_STATUS operationdetail, EXEC_CHECK_STATUS);
);
if ( success ) if ( success )
{ {
const Glib::ustring copy_cmd = "xfsdump -J - " + Glib::sh ell_quote( src_mount_point ) + const Glib::ustring copy_cmd = "xfsdump -J - " + Glib::sh ell_quote( src_mount_point ) +
" | xfsrestore -J - " + Gl ib::shell_quote( dest_mount_point ); " | xfsrestore -J - " + Gl ib::shell_quote( dest_mount_point );
success &= ! execute_command( "sh -c " + Glib::shell_quot e( copy_cmd ), success &= ! execute_command( "sh -c " + Glib::shell_quot e( copy_cmd ),
operationdetail, operationdetail,
EXEC_CHECK_STATUS|EXEC_CANC EL_SAFE|EXEC_PROGRESS_TIMED, EXEC_CHECK_STATUS|EXEC_CANC EL_SAFE|EXEC_PROGRESS_TIMED,
static_cast<TimedSlot>( sig c::mem_fun( *this, &xfs::copy_progress ) ) ); static_cast<TimedSlot>( sig c::mem_fun( *this, &xfs::copy_progress ) ) );
 End of changes. 2 change blocks. 
10 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)