On Sun, Dec 09, 2018 at 06:02:54AM +0800, 積丹尼 Dan Jacobson wrote: > Anyway, on the man page > Here is a list of the available commands: > is missing a description of Resize.
That's pretty different from "remove hazardous Resize command", and a separate -- but actually valid -- issue. > So the man page should mention that the Resize command is exactly equal > to Delete + New, all in one step, with the benefit that the partition > number doesn't change. No, it's not! It doesn't destroy anything, as delete _can_ easily do when mishandled (the user may fail to notice slack space before the partition, etc) -- and unlike GPT, extended partitions on MBR can scribble on some part of the data when modified. It safely resizes the data. Think of realloc() vs free()+malloc() in C -- the former is guaranteed to not destroy your data no matter what happens. And Resize here is a very good analogue of realloc() -- likewise, it's not supposed to resize whatever data structures you have inside. That's the job of a higher-level tool. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Ivan was a worldly man: born in St. Petersburg, raised in ⢿⡄⠘⠷⠚⠋⠀ Petrograd, lived most of his life in Leningrad, then returned ⠈⠳⣄⠀⠀⠀⠀ to the city of his birth to die.

