https://bugs.kde.org/show_bug.cgi?id=470675

--- Comment #9 from Thomas Bertels <tbert...@gmail.com> ---
(In reply to Andrius Štikonas from comment #8)
> (In reply to Thomas Bertels from comment #7)
> > I've noticed that gparted resizes the partition when moving it: it grows it
> > to use all the space, then moves the data and finally shrinks the partition
> > to its original size.
> > Shouldn't KDE Partition Manager do the same ?
> 
> Yes, I think KDE Partition Manager does exactly the same (see
> https://invent.kde.org/system/kpmcore/-/blob/master/src/ops/resizeoperation.
> cpp?ref_type=heads#L69). So I'm a bit confused what exactly causes this.

As I understand it, resizeAction()
(https://invent.kde.org/system/kpmcore/-/blob/master/src/ops/resizeoperation.cpp?ref_type=heads#L232)
finds out based on start and end sector if KDE Partition Manager needs to move,
grow, shrink (or a combination) the partition and only one of those operations
happen.

The bitwise & operator may make it seem like Shrink and Grow always happen
(note that it would be in the wrong order as gparted grows it then shrinks it),
but I don't think that's the case based on enum ResizeAction
(https://invent.kde.org/system/kpmcore/-/blob/master/src/ops/resizeoperation.h?ref_type=heads#L51).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to