GNOME Bugzilla – Bug 403487
interupting a format leave partition "in use"
Last modified: 2013-03-19 16:53:46 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:
I dont understand ! It is clear you cant interrupt operations without getting in trouble, indeed.
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 ?
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.
The code change to address this report has been included in GParted 0.15.0 released on March 19, 2013.