Re: [Vala] d-bus timeout when formating disk
- From: rastersoft <raster rastersoft com>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] d-bus timeout when formating disk
- Date: Mon, 27 Aug 2012 13:43:23 +0200
-----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 <raster rastersoft com> 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)
raster rastersoft com 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-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]