Displaying 20 results from an estimated 62 matches for "get_option".
2008 Jul 23
3
Trouble Playing message file via Perl AGI
...I tried to use the get_data() method. It turns out that I had to put two
of them in my code, but then the timeout doesn't work and it doesn't capture
any keypresses:
$result = $agi->get_data($msg, 120000, 1);
$result = $agi->get_data($msg, 120000, 1);
Finally, I tried to use the get_option() method that was documented in the
module POD file; Perl complains that the method isn't defined:
$result = $agi->get_option($msg, "12345", 10000);
So, what am I missing? I know this works; too many people are doing it. Any
ideas?
TIA,
--
Mike Diehl
2019 Nov 19
2
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...rhv-upload: Don't keep transfer_service in handle
> > rhv-upload: Get host before creating disk
> > rhv-upload: Extract create_transfer() function
> > rhv-upload: Show transfer id in error message
> > rhv-upload: Extract imageio helpers
> > rhv-upload: Extract get_options() helper
> > rhv-upload: Extract optimize_http() helper
> > rhv-upload: Clean up username and password
> >
>
> I'm not sure which one of these is causing it, it sounds like the first one, but
> basically the cleanup path is probably not checked well. I'm facin...
2006 Feb 06
9
tests fine, but fail under rake
Hi there,
So I have an odd error at the moment that only occurs when I run tests
via rake. It''s happening with two tests now. Under a simple ruby run,
the tests are fine, e.g.:
D:\User\Code\ruby\prometheus>ruby
test\functional\story_comments_controller_test
.rb
Loaded suite test/functional/story_comments_controller_test
Started
.........
Finished in 2.37 seconds.
9 tests, 65
2019 Nov 21
1
Re: [PATCH 1/2] rhv-upload: Extract cancel_transfer() function
...> File "/var/tmp/rhvupload.Vw0CIU/rhv-upload-plugin.py", line 97, in open
> transfer_service.cancel()
> NameError: name 'transfer_service' is not defined
Richard, this should be merged before you release 1.48. Without this we can
leave leftover disks if get_options() raises.
> Thanks: Martin Kletzander
> ---
> v2v/rhv-upload-plugin.py | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
> index a2d09458..b9b9e967 100644
> --- a/v2v/rhv-upload-plugin...
2019 Nov 18
15
[PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...rhv-upload: Show disk id in error message
rhv-upload: Don't keep transfer_service in handle
rhv-upload: Get host before creating disk
rhv-upload: Extract create_transfer() function
rhv-upload: Show transfer id in error message
rhv-upload: Extract imageio helpers
rhv-upload: Extract get_options() helper
rhv-upload: Extract optimize_http() helper
rhv-upload: Clean up username and password
v2v/rhv-upload-plugin.py | 325 ++++++++++++++++++++++-----------------
1 file changed, 184 insertions(+), 141 deletions(-)
--
2.21.0
2012 Jan 21
1
[PATCH] include/checkpatch: Prefer __scanf to __attribute__((format(scanf, ...)
.....)
- __attribute__ ((format (scanf, 2, 3)));
-extern int vsscanf(const char *, const char *, va_list)
- __attribute__ ((format (scanf, 2, 0)));
+extern __scanf(2, 3)
+int sscanf(const char *, const char *, ...);
+extern __scanf(2, 0)
+int vsscanf(const char *, const char *, va_list);
extern int get_option(char **str, int *pint);
extern char *get_options(const char *str, int nints, int *ints);
diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h
index e8c599b..0a7515c 100644
--- a/include/xen/xenbus.h
+++ b/include/xen/xenbus.h
@@ -139,9 +139,9 @@ int xenbus_transaction_start(struct xenbus_trans...
2012 Jan 21
1
[PATCH] include/checkpatch: Prefer __scanf to __attribute__((format(scanf, ...)
.....)
- __attribute__ ((format (scanf, 2, 3)));
-extern int vsscanf(const char *, const char *, va_list)
- __attribute__ ((format (scanf, 2, 0)));
+extern __scanf(2, 3)
+int sscanf(const char *, const char *, ...);
+extern __scanf(2, 0)
+int vsscanf(const char *, const char *, va_list);
extern int get_option(char **str, int *pint);
extern char *get_options(const char *str, int nints, int *ints);
diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h
index e8c599b..0a7515c 100644
--- a/include/xen/xenbus.h
+++ b/include/xen/xenbus.h
@@ -139,9 +139,9 @@ int xenbus_transaction_start(struct xenbus_trans...
2018 Jun 21
0
[PATCH 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...'needs_auth': not params['rhv_direct'],
+ 'needs_auth': needs_auth,
'path': destination_url.path,
'transfer': transfer,
'transfer_service': transfer_service,
}
-# Can we issue zero, trim or flush requests?
-def get_options(h):
- if h['got_options']:
- return
- h['got_options'] = True
-
- http = h['http']
- transfer = h['transfer']
-
- http.putrequest("OPTIONS", h['path'])
- http.putheader("Authorization", transfer.signed_ticket)
-...
2018 Jun 22
0
[PATCH v2 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...'needs_auth': not params['rhv_direct'],
+ 'needs_auth': needs_auth,
'path': destination_url.path,
'transfer': transfer,
'transfer_service': transfer_service,
}
-# Can we issue zero, trim or flush requests?
-def get_options(h):
- if h['got_options']:
- return
- h['got_options'] = True
-
- http = h['http']
- transfer = h['transfer']
-
- http.putrequest("OPTIONS", h['path'])
- http.putheader("Authorization", transfer.signed_ticket)
-...
2019 Nov 19
0
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...d in error message
> rhv-upload: Don't keep transfer_service in handle
> rhv-upload: Get host before creating disk
> rhv-upload: Extract create_transfer() function
> rhv-upload: Show transfer id in error message
> rhv-upload: Extract imageio helpers
> rhv-upload: Extract get_options() helper
> rhv-upload: Extract optimize_http() helper
> rhv-upload: Clean up username and password
>
I'm not sure which one of these is causing it, it sounds like the first one, but
basically the cleanup path is probably not checked well. I'm facing a
completely different issu...
2019 Nov 19
2
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...n handle
> >> > rhv-upload: Get host before creating disk
> >> > rhv-upload: Extract create_transfer() function
> >> > rhv-upload: Show transfer id in error message
> >> > rhv-upload: Extract imageio helpers
> >> > rhv-upload: Extract get_options() helper
> >> > rhv-upload: Extract optimize_http() helper
> >> > rhv-upload: Clean up username and password
> >> >
> >>
> >> I'm not sure which one of these is causing it, it sounds like the first
> one, but
> >> basically th...
2018 Jun 25
1
Re: [PATCH v2 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...rhv_direct'],
> + 'needs_auth': needs_auth,
> 'path': destination_url.path,
> 'transfer': transfer,
> 'transfer_service': transfer_service,
> }
>
> -# Can we issue zero, trim or flush requests?
> -def get_options(h):
> - if h['got_options']:
> - return
> - h['got_options'] = True
> -
> - http = h['http']
> - transfer = h['transfer']
> -
> - http.putrequest("OPTIONS", h['path'])
> - http.putheader("Aut...
2019 Nov 19
0
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...t keep transfer_service in handle
>> > rhv-upload: Get host before creating disk
>> > rhv-upload: Extract create_transfer() function
>> > rhv-upload: Show transfer id in error message
>> > rhv-upload: Extract imageio helpers
>> > rhv-upload: Extract get_options() helper
>> > rhv-upload: Extract optimize_http() helper
>> > rhv-upload: Clean up username and password
>> >
>>
>> I'm not sure which one of these is causing it, it sounds like the first one, but
>> basically the cleanup path is probably not chec...
2018 Jun 22
4
v2v: -o rhv-upload: Use Unix domain socket to access imageio (RHBZ#1588088).
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-June/msg00099.html
v2:
- Just fixes the two problems noted in the review of the previous version.
Rich.
2019 Nov 19
0
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...t;> > rhv-upload: Get host before creating disk
>> >> > rhv-upload: Extract create_transfer() function
>> >> > rhv-upload: Show transfer id in error message
>> >> > rhv-upload: Extract imageio helpers
>> >> > rhv-upload: Extract get_options() helper
>> >> > rhv-upload: Extract optimize_http() helper
>> >> > rhv-upload: Clean up username and password
>> >> >
>> >>
>> >> I'm not sure which one of these is causing it, it sounds like the first
>> one, but
&g...
2018 May 10
0
[ANNOUNCE] xorg-server 1.20.0
Lots of Present, DRI3 modifier, and buildsystem fixes. Thanks to
everyone who contributed to this release!
Aaron Plattner (3):
meson: Define DEFAULT_LIBRARY_PATH as join_paths(get_option('prefix'), get_option('libdir'))
meson: Set XCONFIGFILE to 'xorg.conf' instead of '/etc/xorg.conf'
meson: Fix module_dir configuration (v2)
Adam Jackson (10):
dri3: Clamp to 1.0 if not all screens support 1.2
meson: Bump version number here t...
2019 Nov 19
5
[PATCH 0/2] rhv-upload: Complete refactoring
Fix NameError introduced by inocomplete change to extract create_transfer() by
extracting cancel_transfer() function.
Finally extract finallize_transfer() function, dealing with the poorly
documented and over complicated oVirt SDK.
Tested with:
libguestfs-1.40.2-4.fc30.x86_64
nbdkit-1.12.8-1.fc30.x86_64
Tested flows:
- Successful import
- Error in close() - by injecting long sleep in vdsm
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...my $options = shift;
+ defined($options) or carp("instantiate called without options argument");
+
+ my $instance;
+ foreach my $module ($class->modules()) {
+ return $module->new($options) if($module->get_name() eq $name);
+ }
+
+ return undef;
+}
+
+=item get_options(name)
+
+Return a hashref containing module_name => (module options).
+
+=cut
+
+sub get_options
+{
+ my $class = shift;
+
+ my %options;
+ foreach my $module ($class->modules()) {
+ $options{$module->get_name()} = [ $module->get_options() ];
+ }
+
+ return \%opti...
2018 Jun 21
6
v2v: -o rhv-upload: Use Unix domain socket to access imageio (RHBZ#1588088).
These two patches add support for using a Unix domain socket to
directly access imageio in the case where imageio is running on the
conversion host (usually that means virt-v2v is running on the RHV
node and something else -- eg. CFME scripts -- arranges that the RHV
node is the same one running imageio).
Conversions in the normal case are not affected - they happen over TCP
as usual.
This was
2007 Apr 18
2
[RFC, PATCH 9/24] i386 Vmi smp support
...vmi_set_initial_ap_state(__pa(&ap), phys_apicid);
+ }
+}
+
+void __init smpboot_pre_start_secondary_hook(void)
+{
+ if (vmi_hypervisor_found()) {
+ *(unsigned long *) trampoline_base = 0xa5a5a5a5;
+ }
+}
+
+static __init int no_ipi_broadcast(char *str)
+{
+ get_option(&str, &no_broadcast);
+ printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" :
+ "IPI Broadcast");
+ return 1;
+}
+
+__setup("no_ipi_broadcast", no_ipi_broadcast);
+
+static int __init print_ipi_mode(void)
+{
+ printk ("Using IP...