After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 403487 - interupting a format leave partition "in use"
interupting a format leave partition "in use"
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
0.3.3
Other All
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2007-02-02 07:58 UTC by gg
Modified: 2013-03-19 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gg 2007-02-02 07:58:19 UTC
Please describe the problem:
if a gparted format operation is interupted with the cancel button it seems to leave something "in use".

any further attempt to partition either with gparted or command line will get "partition appears to be in use by the system".

closing gparted and the terminal from which it was run seems to clear whatever cruft was not shut down cleanly.


Steps to reproduce:
1. select a partition , format as ext2
2. cancel during format
3. try to reformat


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Laurent de Trogoff 2007-03-02 19:19:54 UTC
I dont understand !
It is clear you cant interrupt operations without getting in trouble, indeed.
Comment 2 gg 2007-03-02 22:51:06 UTC
Then why is there a cancel button ? 

I dont see any reason why the prog cannot exit in an orderly fashion from a half finished format without leaving things in an unstable state. We're not talking about killing the process.

What kind of trouble are you expecting to get into ? 
Comment 3 Curtis Gedak 2013-03-12 01:02:03 UTC
This problem will be resolved with the refactored code from the following enhancement:

Bug #685740 - Refactor to use asynchronous command execution

More specifically the cancelling of external commands was not effective.  The method pthread_cancel was invoked when a user chooses to cancel a running operation.  With pthread_cancel, the external command was not guaranteed to be terminated.

The call to pthread_cancel has been removed and improved cancel support has been added.
Comment 4 Curtis Gedak 2013-03-19 16:53:46 UTC
The code change to address this report has been included in GParted 0.15.0 released on March 19, 2013.