Re: UDisks: partition resize/move support

2011-11-14 Thread walt
On 11/08/2011 01:39 PM, Karel Zak wrote: On Tue, Nov 08, 2011 at 04:31:20PM +0200, Ivo Georgiev wrote: In general, the problem of resizing file-systems and partitions is something that, in Linux, has no unified solution, BTW, Lukas Czerner is working on unified command line interface: http

Re: UDisks: partition resize/move support

2011-11-08 Thread Karel Zak
On Tue, Nov 08, 2011 at 04:31:20PM +0200, Ivo Georgiev wrote: > In general, the problem of resizing file-systems and partitions is > something that, in Linux, has no unified solution, BTW, Lukas Czerner is working on unified command line interface: https://events.linuxfoundation.org/events/linux

Re: UDisks: partition resize/move support

2011-11-08 Thread Georg Grabler
Just take a practical example: a graphical partition manager (gparted, qtparted, any partition manager in any linux installation program etc.). There you need to implement the partitioning using parted, most likely done using the operation stack parted provides, need to know about partition flags,

Re: UDisks: partition resize/move support

2011-11-08 Thread Ivo Georgiev
I think a D-Bus interface is much easier to implement in a program that needs to handle anything partition related. Plus, it's all a unified interface - getting data about devices, partitions and/or modifying them. In general, the problem of resizing file-systems and partitions is something th

Re: UDisks: partition resize/move support

2011-11-08 Thread Ivo Georgiev
I think a D-Bus interface is much easier to implement in a program that needs to handle anything partition related. Plus, it's all a unified interface - getting data about devices, partitions and/or modifying them. In general, the problem of resizing file-systems and partitions is something th

Re: UDisks: partition resize/move support

2011-11-08 Thread walt
On 11/07/2011 11:56 AM, David Zeuthen wrote: > ... > The current code in master simply shells out to the parted(8), > sgdisk(8) and sfdisk(8) tools to do the heavy lifting. I expect the > implementation of Partition.Resize() to do something similar... Hi David. I'm very familiar with parted and

Re: UDisks: partition resize/move support

2011-11-07 Thread David Zeuthen
Hey, 2011/11/7 Иво Георгиев : > Shouldn't the method contain "filesystem" (since it will re-size the > file-system first), or it would not re-size file-systems (only modifying the > partition table)? I think we need to have both, e.g. Filesystem.Resize() and Partition.Resize() Applications

Re: UDisks: partition resize/move support

2011-11-07 Thread David Zeuthen
Hey, 2011/11/5 Иво Георгиев : > The documentation says "TODO: Consider allowing changing offset and size." > under PartitionModify(). > If that feature is still desired/welcome, I'd be happy to try to implement > it. Is it? Yes it is but the work should happen in udisks2 (which is now on the mast