[Bug 1060484] Re: When using gparted com.canonical.Unity.Devices blacklist is set back to Default of []

Curtis Gedak gedakc at gmail.com
Tue Jun 18 19:34:47 UTC 2013


> The only difference between disks & gparted is the syncing/refreshing occurs when
> gparted is opened, disk's only does so once some action (partitioning) has occurred.

When gparted starts up, it makes a call to the libparted library
function ped_disk_commit_to_os().  This checks to see if the kernel can
reread the partition table.  If not, then gparted disables the
"resize/move" menu option.  The line of code that performs this check
can be viewed at the following link:

https://git.gnome.org/browse/gparted/tree/src/GParted_Core.cc#n310

The by-product of calling ped_disk_commit_to_os() is that libparted
removes and re-adds the partitions.  This remove/re-add partition action
appears to cause the blacklist to be cleared.

To get around this unwanted by-product, one of the following would help:

A)  Use some other "non-partition-changing" method to test if the kernel
can reread the partition table

or

B)  Use some other method to prevent the blacklist from being cleared.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gparted in Ubuntu.
https://bugs.launchpad.net/bugs/1060484

Title:
  When using gparted  com.canonical.Unity.Devices blacklist is set back
  to Default of []

Status in Unity:
  Invalid
Status in “gparted” package in Ubuntu:
  Invalid
Status in “parted” package in Ubuntu:
  In Progress
Status in “unity” package in Ubuntu:
  Confirmed

Bug description:
  Test Case:
  blacklist one or more internal volumes in Unity (r. click on launcher icon > Unlock from Launcher
  confirm the volume(s) are now in the com.canonical.Unity.Devices blacklist
  Start gparted, drive(s) will be added to the launcher, blacklist will be reset back to []

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: gparted 0.12.1-1
  ProcVersionSignature: Ubuntu 3.5.0-16.25-generic 3.5.4
  Uname: Linux 3.5.0-16-generic x86_64
  ApportVersion: 2.6.1-0ubuntu1
  Architecture: amd64
  Date: Tue Oct  2 18:10:31 2012
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gparted
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1060484/+subscriptions




More information about the foundations-bugs mailing list