search for: add_option

Displaying 20 results from an estimated 29 matches for "add_option".

2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +from optparse import OptionParser +from tempfile import mkdtemp +import dbus +import dbus.glib +import sys +import os +import subprocess +import shutil + +parser = OptionParser() +parser.add_option("--iso", dest="iso", help="LiveCD iso filename") +parser.add_option("--target", dest="target", help="iSCSI target ip address") +parser.add_option("--targetname", dest="targetname", help="iSCSI target lun") +pa...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 4/7] userspace virtio
...vendors than rtl8139. Use --nictype=xxx, the ddefault is rtl8139. Signed-off-by: Dor Laor <dor.laor@qumranet.com> --- kvm | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/kvm b/kvm index 0374fbc..2a7dc85 100755 --- a/kvm +++ b/kvm @@ -55,6 +55,12 @@ optparser.add_option('--no-tap', default = not privileged, ) +optparser.add_option('--nictype', + help = 'use this specific nic type (vendor)', + dest = 'nictype', + default = 'r...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 4/7] userspace virtio
...vendors than rtl8139. Use --nictype=xxx, the ddefault is rtl8139. Signed-off-by: Dor Laor <dor.laor@qumranet.com> --- kvm | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/kvm b/kvm index 0374fbc..2a7dc85 100755 --- a/kvm +++ b/kvm @@ -55,6 +55,12 @@ optparser.add_option('--no-tap', default = not privileged, ) +optparser.add_option('--nictype', + help = 'use this specific nic type (vendor)', + dest = 'nictype', + default = 'r...
2009 Jun 03
3
Appending a Rails Partial with jQuery
...Screencast about inserting a partial with jQuery and currently have it working in my app. What i really would like is to keep all my code in my application.js file vs a bunch of files all over my view folders. This is what i have in my application.js $(document).ready(function() { $(''#add_option'').click(function() { $(this).addPollOption(); }); }); jQuery.fn.addPollOption = function() { $("#poll_options").append(''#{escape_javascript render(:partial => "topics/poll_option", :object => TopicOption.new)}''); }; i have tried it with...
2006 Jul 08
10
A rant about parameters
...own in the call stack: ---- module ActionView::Helpers class InstanceTag def to_country_select_tag(priority_countries, options, html_options) html_options = html_options.stringify_keys add_default_name_and_id(html_options) content_tag("select", add_options(country_options_for_select(value, priority_countries), options, value), html_options) end end end ---- Can anyone tell me how value here could *ever* have a value? Thanks for listening. I feel better somehow, but still not clean. John
2019 Sep 18
1
[p2v PATCH] Ignore 'rhv-upload' driver (RHBZ#1590220)
...nce that should only be used by VDSM. + * Ignore the 'rhv-upload' driver, since we do not support passing all the + * options for it. + */ + if ((len != 4 || memcmp (name, "vdsm", 4) != 0) && + (len != 10 || memcmp (name, "rhv-upload", 10) != 0)) add_option ("output", &output_drivers, name, len); } -- 2.21.0
2009 Sep 22
1
[PATCH] edit-livecd in python
...unt '%s' : %s" % + (base_on, e)) + + finally: + isoloop.cleanup() + + +def parse_options(args): + parser = optparse.OptionParser(usage = "%prog [-s=<script.sh>] <LIVECD.iso>") + + parser.add_option("-n", "--name", type="string", dest="name", + help="name of new livecd (don't include .iso will be added)") + + parser.add_option("-o", "--output", type="string", dest="output", +...
2009 Oct 14
4
Refactor ovirt-node-image code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Removed ks files, now in ovirt-node-recipe, which is subpackage of ovirt-node. Removed tools, these are now in ovirt-node-recipe which is subpackage of ovirt-node.
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...for k in keys: + print ' %9d' % s[k][1], + print + line = 0 + banner_repeat = 20 + while True: + time.sleep(1) + if line % banner_repeat == 0: + banner() + statline() + line += 1 + +options = optparse.OptionParser() +options.add_option('-1', '--once', '--batch', + action = 'store_true', + default = False, + dest = 'once', + help = 'run in batch mode for one second', + ) +options.add_option('...
2001 Mar 10
0
patch to add device-option to ogg123 rc file
...c\n"); + exit(1); + } + strncpy (device_options, &line[16], sizeof(line) - 1); + for (i = 0; i < strlen(device_options); i++) + if (device_options[i] == '\n' || device_options[i] == '\r') + device_options[i] = 0; + + if (!add_option(op_h, device_options)) { + fprintf(stderr, "Incorrect option format in rc file: %s.\n", + device_options); + exit(1); + } + } if (strncmp(line, "default_device=", 15) == 0) { - device = &line[15]; + device = m...
2020 Mar 16
3
[p2v PATCH 1/3] Add kickstart URLs for RHEL 8
Both BaseOS and AppStream are needed. --- virt-p2v-make-kickstart.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/virt-p2v-make-kickstart.in b/virt-p2v-make-kickstart.in index 779ba62..cbbfb8a 100644 --- a/virt-p2v-make-kickstart.in +++ b/virt-p2v-make-kickstart.in @@ -176,6 +176,16 @@ repo --name=rhel6_${minor}_server_optional --baseurl=$baseurl/Server/optional/$a
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe. Removes old sub packages form ovirt-node, stateless, logos, selinux. Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221 Added License file.
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2020 Mar 16
0
[p2v PATCH 3/3] Ignore 'openstack' driver
...ers, since we do not + * support passing all the options for them. */ if ((len != 4 || memcmp (name, "vdsm", 4) != 0) && + (len != 9 || memcmp (name, "openstack", 9) != 0) && (len != 10 || memcmp (name, "rhv-upload", 10) != 0)) add_option ("output", &output_drivers, name, len); } -- 2.24.1
2018 Oct 02
2
Delete vs. Expunge in Public Namespace
All, my IMAP client [1] marks messages as deleted, but doesn't expunge. Dovecot (2.2.27-3+deb9u2) expunges them. Is this because the mailbox is part of public namespace? .... ::1.38247-::1.00143: MALP6 STORE 48,49,50,51,52,53,54,55,56,57,58,59,60,61 +FLAGS (\Deleted) ::1.00143-::1.38247: * 48 FETCH (FLAGS (\Deleted \Seen)) * 49 FETCH (FLAGS (\Deleted \Seen)) * 50 FETCH (FLAGS (\Deleted
2018 Oct 03
1
Delete vs. Expunge in Public Namespace
...ecause the mailbox is >> part of public namespace? > > Or are they expunged because they're duplicates? Is there any check? > Based on Message ID? No.. None of this makes sense. Dovecot doesn't auto-expunge \Deleted mails in any situation. I see your tool says: parser.add_option("", "--no-close", dest='no_close', action="store_true", help='Do not "close" mailbox when done. Some servers will purge deleted messages on a close command.') If it's sending CLOSE, that explains it. It's no...
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they value with --option_name I get only logical true instead of string ... default_options :option_name => "Some string" ... def add_options!(opt) opt.separator '''' opt.separator ''Options:'' opt.on("--option_name","Some Text") { |v| options[:option_name] = v } end ... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received...
2020 Mar 16
1
Re: [p2v PATCH 3/3] Ignore 'openstack' driver
...* support passing all the options for them. > */ > if ((len != 4 || memcmp (name, "vdsm", 4) != 0) && > + (len != 9 || memcmp (name, "openstack", 9) != 0) && > (len != 10 || memcmp (name, "rhv-upload", 10) != 0)) > add_option ("output", &output_drivers, name, len); > } > -- Series looks fine, ACK. Somewhere I had a patch (for "old" p2v/) which got half way through fixing the openstack options. I'll have to dig it up some time, but IIRC it depended rather crucially on having the gen...
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx