[gparted] Remove unable to re-read partition table warning (#599078)
- From: Curtis Gedak <gedakc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gparted] Remove unable to re-read partition table warning (#599078)
- Date: Mon, 26 Oct 2009 20:51:25 +0000 (UTC)
commit c85de03ee31c9577ecbfeae33bd66cd254d23fbe
Author: Curtis Gedak <gedakc gmail com>
Date: Mon Oct 26 14:48:22 2009 -0600
Remove unable to re-read partition table warning (#599078)
When used with parted-2.0, GParted would display a warning
message indicating "kernel unable to re-read partition table" on
every device scan for each device with at least one partition
mounted. Device scans occur when GParted starts up, immediately
after a series of actions are applied, and upon manually invoked
device refreshes. This, I believe, is excessive notification to
the user and would be annoying.
src/Win_GParted.cc | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 2d0b0e2..99a33f1 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1067,28 +1067,6 @@ void Win_GParted::menu_gparted_refresh_devices()
if ( current_device >= devices .size() )
current_device = 0 ;
- //show read-only warning if necessary
- std::vector<Glib::ustring> readonly_paths ;
- for ( unsigned int t = 0 ; t < devices .size() ; t++ )
- if ( devices[ t ] .readonly )
- readonly_paths .push_back( "\n- " + devices[ t ] .get_path() ) ;
-
- if ( readonly_paths .size() > 0 )
- {
- Gtk::MessageDialog dialog(
- *this,
- _("The kernel is unable to re-read the partition tables on the following devices:") +
- Glib::build_path( "", readonly_paths ),
- false,
- Gtk::MESSAGE_WARNING,
- Gtk::BUTTONS_OK,
- true ) ;
-
- dialog .set_secondary_text( _("Because of this you will only have limited access to these devices. Unmount all mounted partitions on a device to get full access.") ) ;
-
- dialog .run() ;
- }
-
//see if there are any pending operations on non-existent devices
//NOTE that this isn't 100% foolproof since some stuff (e.g. sourcedevice of copy) may slip through.
//but anyone who removes the sourcedevice before applying the operations gets what he/she deserves :-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]