Is there any dbus API to create a partition table?

Krzysztof Kotlenga pocek at users.sf.net
Sun Oct 6 14:08:45 PDT 2013


On Mon, 2013-10-07 at 04:51 +0800, Fred Chien wrote:

> I'm working on a Node.js module to handle disk job with UDisks2. There
> is one problem I got that no way to create a partition table.
> 
> [...]
>
> I suppose Udisks2 should have the way to create partition table, but i
> don't found it. Any idea?

First, you call Format on a block device:
http://tiny.cc/mpwj4w

Then you will get the PartitionTable interface to do the rest.

-- 
The fact is, most software is crap, and most software developers
are lazy and stupid. Same as most customers are stupid too.
                         -- Hua Zhong, Linux Kernel Mailing List




More information about the devkit-devel mailing list