Displaying 20 results from an estimated 48 matches for "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 upgrade...
2010 May 21
0
ANNOUNCE: cifs-utils release 4.5 available for download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The rate of incoming patches has been pretty low lately, so it's
probably a good time to do a new stable release and get what's queued
up into people's hands...
This release consists of a couple of bugfixes and some (hopefully)
non-user-visible cleanups to the mount.cifs code.
webpage: http://linux-cifs.samba.org/cifs-utils/
tarball:
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"...
2011 Jan 26
2
changes in rspec 2.4 break ci_reporter
Hi
I use the ci_reporter gem for builds on my CI machine (hudson).
Prior 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
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"
>...
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
From: Gene Cumm <gene.cumm at gmail.com>
linux/syslinux.c: Test if 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,
2012 Feb 09
1
Autorun Picks Up Options
Hi,
I was trying to use the autorun feature of rspec but noticed that when I
run the command to kick off the ruby scripts it picks up the options that I
give to the command.
''myRubyBin -j optionValue''
This then fails with this error,
/usr/lib/ruby/1.8/optparse.rb:1448:in `complete''
:
invalid option: -j
(
OptionParser::InvalidOption
)
from
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
Options given on the command line have precedence over configuration
from files.
This can be useful, for example, for a roaming node, for which
'ConnectTo' and <host>.Address depends on its location.
---
This patch is against stable branch. Merging this patch to the 1.1
branch is trivial.
I use this patch on my Debian for several weeks.
Here is the ifupdown script I use (some
2010 Apr 02
0
ANNOUNCE: cifs-utils release 4.2 available for download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This release contains a significant overhaul of mount.cifs that is
intended to make it safer to install setuid root. With this release,
setuid capability is no longer disabled by default. Among the changes
are:
- - mount.cifs now does privilege separation. It forks very early and the
child drops privileges. Most of the mount option processing is
2009 Jun 29
1
wine/RosettaStone breakage from recent kernel commit
Hi,
I've been running the foreign language training program The Rosetta Stone(TRS)
on wine for months now, but a recent commit to the linux kernel has caused TRS
to be unable to read the DVD drive, where the program's data files are kept.
Strangely, winefile can still read the data DVD, but TRS cannot, and I'm
stumped.
Below is the guilty kernel commit (rather long, sorry). Can
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) {
+
2004 Sep 10
2
FLAC 1.0.4 beta released
On Thu, Sep 12, 2002 at 10:54:04PM +0200, Miroslav Lichvar wrote:
> I tried tagging using metaflac with some iso-8859-2 chars, but these
> chars were replaced by '#' chars, something wrong is here.
Ok, here is simple patch, it works for me, but I'm not familiar with
this stuff.
BTW, metaflac --list prints comments in raw utf8, it can screw
terminal easily.
--
Miroslav Lichvar