sync after swapon/swapoff (see also #330327)
* src/Win_GParted.cc: sync after swapon/swapoff (see also #330327)
This commit is contained in:
parent
2b773091af
commit
7db84a61c6
|
@ -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>
|
||||
|
||||
* configure.in: improved check for libparted (thanks to Pete Shinners,
|
||||
|
|
|
@ -1384,9 +1384,9 @@ void Win_GParted::activate_unmount()
|
|||
void Win_GParted::thread_toggle_swap( bool * succes, Glib::ustring * error )
|
||||
{
|
||||
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
|
||||
*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 ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue