search for: parse_opt

Displaying 20 results from an estimated 48 matches for "parse_opt".

Did you mean: parse_opts
2010 Mar 24
3
mounting gfs partition hangs
Hi, I have configured two machines for testing gfs filesystems. They are attached to a iscsi device and centos versions are: CentOS release 5.4 (Final) Linux node1.fib.upc.es 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux The problem is if I try to mount a gfs partition it hangs. [root at node2 ~]# cman_tool status Version: 6.2.0 Config Version: 29 Cluster Name:
2016 Jun 01
2
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems and change root suggested by --suggest option in virt-rescue. Commands are passed on kernel command line in format guestfs_command=command;. Command ends with a semicolon and there can be multiple commands specified. These are executed just before bash starts. On successfull run user is presented directly with bash in
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work. Throws an error: c:\work\development\rails\application1>ruby script/console Loading development environment. c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined method `up case'' for nil:NilClass (NoMethodError) from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup'' from c:/tools/ruby/lib/ruby/1.8/irb.rb:54:in `start'' from c:/tools/ruby/bin/irb:13 On windows XP SP2. Before upgrad...
2010 May 21
0
ANNOUNCE: cifs-utils release 4.5 available for download
...off-by: Scott Lovenberg <scott.lovenberg at gmail.com> commit 268079992cf85bfb9954b6fd4abb3eebf911a9d3 Author: Scott Lovenberg <scott.lovenberg at gmail.com> Date: Fri May 14 19:32:05 2010 -0400 mount.cifs: clean up option parsing Moved option string parsing to function parse_opt_token(char*). Main loop in parse_options(const char*, struct parsed_mount_info*) transplanted to a switch block. The parsing function folds common options to a single macro: 1.) 'unc','target', and 'path' -> 'OPT_UNC' 2.) 'dom*'...
2016 Jun 09
2
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...tatic char ** do_suggestion (struct drv *drvs); > > /* Currently open libguestfs handle. */ > guestfs_h *g; > @@ -50,6 +50,9 @@ int echo_keys = 0; > const char *libvirt_uri = NULL; > int inspector = 0; > > +static void use_suggestions (char **cmds); > +static void parse_opts(int argc, char * argv[]); > + > static void __attribute__((noreturn)) > usage (int status) > { > @@ -65,6 +68,8 @@ usage (int status) > "Options:\n" > " -a|--add image Add image\n" > " --append...
2016 Jun 01
0
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...tic void do_suggestion (struct drv *drvs); +static char ** do_suggestion (struct drv *drvs); /* Currently open libguestfs handle. */ guestfs_h *g; @@ -50,6 +50,9 @@ int echo_keys = 0; const char *libvirt_uri = NULL; int inspector = 0; +static void use_suggestions (char **cmds); +static void parse_opts(int argc, char * argv[]); + static void __attribute__((noreturn)) usage (int status) { @@ -65,6 +68,8 @@ usage (int status) "Options:\n" " -a|--add image Add image\n" " --append kernelopts Append kernel options\n&quo...
2011 Jan 26
2
changes in rspec 2.4 break ci_reporter
...to rspec 2.4, environment options would override commandline options. So the gem used this to change the formatter and require its files. In 2.4, that order has been reversed. the thing is 2.4 supports multiple formatters, so there is another suggestion. RSpec::Core::ConfigurationOptions def parse_options @options = begin options_to_merge = [] if custom_options_file options_to_merge << custom_options else options_to_merge << global_options...
2006 Mar 30
9
script/console not working after Rails 1.1 upgrade
Whenever I do script/console I get an error message: Loading development enviroment. c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ''parse_opts'' : undefined method ''upcase'' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/1.8/irb/init.rb: in ''setup'' from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ''start'' from c:/ruby/bin/irb:13 It used to work before I upgraded to Rails 1...
2016 Jun 16
0
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...rvs); >> >> /* Currently open libguestfs handle. */ >> guestfs_h *g; >> @@ -50,6 +50,9 @@ int echo_keys = 0; >> const char *libvirt_uri = NULL; >> int inspector = 0; >> >> +static void use_suggestions (char **cmds); >> +static void parse_opts(int argc, char * argv[]); >> + >> static void __attribute__((noreturn)) >> usage (int status) >> { >> @@ -65,6 +68,8 @@ usage (int status) >> "Options:\n" >> " -a|--add image Add image\n" &gt...
2004 Sep 10
1
flac -S-
I have noticed flac -S- isn't working correctly, '-' isn't handled in parse_option() nor in convert_to_seek_table_template(). It makes SEEKTABLE with one seek point. Similar options -V-, -e-, -p-, ... are not allowed since 1.0.4, I think best would be drop -S- from documentation too and use --no-seektable option only. -- Miroslav Lichvar
2010 Jun 19
1
[PATCH 2/2] linux/syslinux.c: Test if null
...opt.directory is null before testing first character. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- diff --git a/linux/syslinux.c b/linux/syslinux.c index 3a51f7e..2fd562e 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -283,7 +283,8 @@ int main(int argc, char *argv[]) parse_options(argc, argv, MODE_SYSLINUX); ret = asprintf(&subdir, "%s%s", - opt.directory[0] == '/' ? "" : "/", opt.directory); + (opt.directory ? ((opt.directory[0] == '/') ? "" : "/") : ""), +...
2012 Feb 09
1
Autorun Picks Up Options
...from /usr/lib/ruby/1.8/optparse.rb:1246:in `order!'' from /usr/lib/ruby/1.8/optparse.rb:1337:in `permute!'' from /usr/lib/ruby/1.8/optparse.rb:1358:in `parse!'' ... 6 levels... from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.8.0/lib/rspec/core/configuration_options.rb:26:in `parse_options'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:59:in `run'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:10:in `autorun'' Is there a way for rspec/autorun to ignore all options? -------------- next part -------...
2016 May 24
1
[PATCH] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems and change root suggested by --suggest option in virt-rescue. Commands are passed on kernel command line in format guestfs_command=command;. Command ends with a semicolon and there can be multiple commands specified. These are executed just before bash starts. On successfull run user is presented directly with bash in
2010 Sep 03
1
[PATCH] New '-o' option to configure server or hosts from command line
...-R, --chroot chroot to NET dir at startup.\n" " -U, --user=USER setuid to given USER at startup.\n" " --help Display this help and exit.\n" @@ -145,10 +146,14 @@ static void usage(bool status) { } static bool parse_options(int argc, char **argv) { + config_t *cfg; int r; int option_index = 0; + int lineno = 0; - while((r = getopt_long(argc, argv, "c:DLd::k::n:K::RU:", long_options, &option_index)) != EOF) { + cmdline_conf = list_alloc((list_action_t)free_config); + + while((r = getopt_long(...
2010 Apr 02
0
ANNOUNCE: cifs-utils release 4.2 available for download
...in parsed_info ...rather than a buffer pointed to by a global var Signed-off-by: Jeff Layton <jlayton at redhat.com> commit 0ec6dc3c89ccc48d9f4a4edb9865502cf3759d03 Author: Jeff Layton <jlayton at redhat.com> Date: Thu Apr 1 15:19:16 2010 -0400 mount.cifs: make parse_options return proper mount error codes Signed-off-by: Jeff Layton <jlayton at redhat.com> commit c9b5372277c3ab046d09508d90c1c3f8137b3a11 Author: Jeff Layton <jlayton at redhat.com> Date: Thu Apr 1 15:19:16 2010 -0400 mount.cifs: have parse_options fill parsed_mount_info...
2009 Jun 29
1
wine/RosettaStone breakage from recent kernel commit
...unsigned int blocksize; mode_t fmode; mode_t dmode; - char uid_set; - char gid_set; gid_t gid; uid_t uid; char *iocharset; - unsigned char utf8; /* LVE */ s32 session; s32 sbsector; @@ -363,11 +363,11 @@ static int parse_options(char *options, struct iso9660_options *popt) int option; popt->map = 'n'; - popt->rock = 'y'; - popt->joliet = 'y'; - popt->cruft = 'n'; - popt->hide = 'n'; - popt->showassoc = 'n';...
2017 Sep 14
0
[PATCH] nfsmount: support nfsvers= and vers= options
...ts[] = { {"port", &nfs_port}, + {"nfsvers", &nfs_version}, + {"vers", &nfs_version}, {"rsize", &mount_data.rsize}, {"wsize", &mount_data.wsize}, {"timeo", &mount_data.timeo}, @@ -129,6 +132,22 @@ static void parse_opts(char *opts) } } } + /* If new-style options "nfsvers=" or "vers=" are passed, override + old "v2" and "v3" options */ + if (nfs_version != 0) { + switch (nfs_version) { + case 2: + mount_data.flags &= ~NFS_MOUNT_VER3; + break; + case 3...
2019 Jan 18
0
[klibc:master] nfsmount: support nfsvers= and vers= options
...ts[] = { {"port", &nfs_port}, + {"nfsvers", &nfs_version}, + {"vers", &nfs_version}, {"rsize", &mount_data.rsize}, {"wsize", &mount_data.wsize}, {"timeo", &mount_data.timeo}, @@ -129,6 +132,22 @@ static void parse_opts(char *opts) } } } + /* If new-style options "nfsvers=" or "vers=" are passed, override + old "v2" and "v3" options */ + if (nfs_version != 0) { + switch (nfs_version) { + case 2: + mount_data.flags &= ~NFS_MOUNT_VER3; + break; + case 3...
2017 Sep 28
0
tinc: fix parsing of -b flag
Only the short -b option is missing, --batch works as expected. - todd diff --git a/src/tincctl.c b/src/tincctl.c index 9eb9a1b..766b769 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -168,7 +168,7 @@ static bool parse_options(int argc, char **argv) { int r; int option_index = 0; - while((r = getopt_long(argc, argv, "+c:n:", long_options, &option_index)) != EOF) { + while((r = getopt_long(argc, argv, "+bc:n:", long_options, &option_index)) != EOF) { switch (r) { case 0: /* l...
2004 Sep 10
2
FLAC 1.0.4 beta released
...+33,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <locale.h> #if 0 /*[JEC] was:#if HAVE_GETOPT_LONG*/ @@ -308,6 +309,7 @@ CommandLineOptions options; int ret = 0; + setlocale(LC_ALL, ""); init_options(&options); if(parse_options(argc, argv, &options))