Summary: | Should check for mounts before Applying operations | ||
---|---|---|---|
Product: | [Applications] partitionmanager | Reporter: | brute4s99 <piyushaggarwal002> |
Component: | general | Assignee: | Andrius Štikonas <andrius> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | ondrej.mach, plata.hill |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
brute4s99
2020-07-06 05:59:46 UTC
It is known that it doesn't check. Well, actually there is one check before deleting partition but not before other operations: https://invent.kde.org/system/kpmcore/-/blob/master/src/ops/deleteoperation.cpp#L120 Note that other checks would be more complicated, resizing mounted partitions is often allowed or even required (you can't resize unmounted btrfs, for example if it is unmounted partition manager creates a temporary mount point, resizes and unmounts), so it would be a bit trickier although not impossible to insert similar check for resizing. It's a bit hard to tell where we should draw the line. Partition Manager assumes that you do not change partitions under its feet after scanning (and GParted behaves exactly the same). And mounting is just one of the many ways you can modify partition. So I'm not fully convinced about this yet... *** Bug 470946 has been marked as a duplicate of this bug. *** Agree that it would be helpful. If it's not possible to unmount automatically, maybe it would be possible to make the problem more obvious and show a button to unmount right in that error message ("Unmount and try again")? And/or a warning dialog before applying the operation: "A partition is still mounted, do you want to unmount it?". |