[gparted] Display failure from wipefs as an error not a warning (#688882)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Display failure from wipefs as an error not a warning (#688882)
- Date: Mon, 25 Mar 2013 16:58:49 +0000 (UTC)
commit b2b51ad424b5b76c9bf25aa80d54e3ad21dab762
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sat Mar 2 10:29:53 2013 +0000
Display failure from wipefs as an error not a warning (#688882)
When wipefs command fails this means that in the display of the
operation results tree:
1) The command is displayed with a time and a stop sign, rather than no
time and a warning sign;
2) There is no report of any warnings or failures at the top level
summary.
(The immedately following "clear primary signatures" step will clear all
the file system signatures which wipefs failed to do. Should this fail
too it will report errors which will fail the whole operation).
Bug #688882 - Improve clearing of file system signatures
src/GParted_Core.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index c303914..a3c145f 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -3264,7 +3264,7 @@ bool GParted_Core::wipe_filesystem_signatures( const Glib::ustring & path,
if ( ! error .empty() )
operationdetail .get_last_child() .add_child( OperationDetail( error, STATUS_NONE,
FONT_ITALIC ) ) ;
success = ( 0 == exit_status ) ;
- operationdetail .get_last_child() .set_status( success ? STATUS_SUCCES : STATUS_N_A ) ;
+ operationdetail .get_last_child() .set_status( success ? STATUS_SUCCES : STATUS_ERROR ) ;
return success ;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]