-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi:
I tried
yield device.FilesystemCreate("reiserfs","");
with
[DBus (timeout = 10000000, name = "org.freedesktop.UDisks.Device")]
interface Device_if : GLib.Object {
public abstract string IdLabel { owned get; }
public abstract string[] DeviceMountPaths { owned get; }
public abstract void FilesystemUnmount(string[]? options) throws
IOError;
public abstract async void FilesystemCreate(string type, string[]
options) throws IOError;
public abstract void PartitionModify (string type, string label,
string[]? options) throws IOError;
public abstract void FilesystemMount(string type, string[]? options,
out string mount_path) throws IOError;
}
and with
[DBus (name = "org.freedesktop.UDisks.Device")]
interface Device_if : GLib.Object {
public abstract string IdLabel { owned get; }
public abstract string[] DeviceMountPaths { owned get; }
public abstract void FilesystemUnmount(string[]? options) throws
IOError;
[DBus (timeout = 10000000)]
public abstract async void FilesystemCreate(string type, string[]
options) throws IOError;
public abstract void PartitionModify (string type, string label,
string[]? options) throws IOError;
public abstract void FilesystemMount(string type, string[]? options,
out string mount_path) throws IOError;
}
but none of them worked (also tried putting "timeout=10000000" after the
"name" attribute, but also didn't work).
El 27/08/12 11:03, Luca Bruno escribió:
> On Sun, Aug 26, 2012 at 11:15 PM, rastersoft <[email protected]> wrote:
>
>> Hi all:
>>
>> I'm using UDISKS and D-BUS to formate a hard disk. Unfortunately, the
>> time needed to format the drive is bigger than the default timeout for
>> an async call, so I always receive an exception with a d-bus timeout.
>>
>> How can I set the timeout to a bigger (or even infinite) value?
>>
>
> Try with [DBus (timeout = 10000000)] on top of the method.
>
- --
Nos leemos
RASTER (Linux user #228804)
[email protected] http://www.rastersoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlA7XVoACgkQXEZvyfy1ha+vQgCgvFYSHICJ9K4INSda0Q6BoWK5
WgYAnimB0bui0XSV40RLYUo8R+kMHxmk
=zKxq
-----END PGP SIGNATURE-----
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list