udisks icon indicating copy to clipboard operation
udisks copied to clipboard

Provide API to resize both device and format

Open vojtechtrefny opened this issue 7 years ago • 1 comments

Resize functions in org.freedesktop.UDisks2.Partition and org.freedesktop.UDisks2.LogicalVolume should provide an option to resize both the device and filesystem on it (if supported).

vojtechtrefny avatar Jul 03 '18 13:07 vojtechtrefny

Do you plan to create different jobs or just keep one big job? And also integrate FS repair in case only offline resizing is supported (before and after FS resize)?

Getting all this work in GNOME Disks was difficult because of race conditions with the piled up kernel/udev/libblockdev/Udisks event propagation. I also found out that keeping the filesystem mounted during the partition resize helps to prevent any race conditions (with GVFs automount or similar) due to the mentioned event propagation which then does not happen.

Packing all this in one place at UDisk makes it more usable for client programs. (It also looks ugly with all the async callbacks.) So I'm supporting this idea even tough last year I decided for a client implementation.

pothos avatar Jul 03 '18 15:07 pothos