sync after swapon/swapoff (see also #330327)

* src/Win_GParted.cc: sync after swapon/swapoff (see also #330327)
This commit is contained in:
Bart Hakvoort 2006-02-16 11:41:10 +00:00
parent 2b773091af
commit 7db84a61c6
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-02-16 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: sync after swapon/swapoff (see also #330327)
2006-02-16 Bart Hakvoort <hakvoort@cvs.gnome.org> 2006-02-16 Bart Hakvoort <hakvoort@cvs.gnome.org>
* configure.in: improved check for libparted (thanks to Pete Shinners, * configure.in: improved check for libparted (thanks to Pete Shinners,

View File

@ -1384,9 +1384,9 @@ void Win_GParted::activate_unmount()
void Win_GParted::thread_toggle_swap( bool * succes, Glib::ustring * error ) void Win_GParted::thread_toggle_swap( bool * succes, Glib::ustring * error )
{ {
if ( selected_partition .busy ) if ( selected_partition .busy )
*succes = ! Utils::execute_command( "swapoff -v " + selected_partition .partition, str_temp, *error ) ; *succes = ! Utils::execute_command( "swapoff -v " + selected_partition .partition + " && sync", str_temp, *error ) ;
else else
*succes = ! Utils::execute_command( "swapon -v " + selected_partition .partition, str_temp, *error ) ; *succes = ! Utils::execute_command( "swapon -v " + selected_partition .partition + " && sync", str_temp, *error ) ;
pulse = false ; pulse = false ;
} }