GNOME Bugzilla – Bug 575854
UI review: nonsensical step counts
Last modified: 2009-03-30 21:21:37 UTC
from http://bugzilla.gnome.org/show_bug.cgi?id=575852 Changing password for LUKS: "(task 1 of 0)"
It seems to me that this should be fixed in DeviceKit-disks, by initializing device->priv->job_num_tasks to 1. Also, palimpsest/gdu-section-job.c:job_update should be fixed to suppress the (task %d of %d) part if job_num_tasks is < 2.
Created attachment 131147 [details] [review] patch for the gdu part
This applies to more than just LUKS. In fact, it will apply to any job where we run a command not provided by DeviceKit-disks itself. E.g. where the helper doesn't emit progress. For example it also applies to FilesystemMount(). So I think it's probably better to just allow job_num_tasks to be 0 (meaning undefined/unknown).
Committed. Thanks.