search for: is_open

Displaying 20 results from an estimated 38 matches for "is_open".

Did you mean: iso_open
2007 Dec 28
1
logistic mixed effects models with lmer
...in the model. So I then build a model (m18) with exactly the same random and fixed effects except removing poly(wlen_p,2)2. Then I do an anova, and I get: > anova(m17,m18) Data: Models: m18: is_err ~ sex + starts_turn + before_hes + after_hes + before_part + m17: after_part + first_rep + is_open + is_disc + poly(wfreq, m18: 2) + wlen_p + poly(utt_rate, 2) + poly(dur, 2) + pmean + m17: poly(log_prange, 2) + poly(imean, 2) + poly(irange, 2) + m18: (1 | speaker) + (1 | corpus) + (1 | ref) m17: is_err ~ sex + starts_turn + before_hes + after_hes + before_part + m18: after_part...
2018 Sep 13
1
[PATCH] lib: direct: Query qemu binary for availability of KVM (RHBZ#1605071).
..._h *g, const char *param); diff --git a/lib/launch-direct.c b/lib/launch-direct.c index e99c33347..40283d0d2 100644 --- a/lib/launch-direct.c +++ b/lib/launch-direct.c @@ -72,7 +72,6 @@ struct backend_direct_data { char guestfsd_sock[UNIX_PATH_MAX]; /* Path to daemon socket. */ }; -static int is_openable (guestfs_h *g, const char *path, int flags); static char *make_appliance_dev (guestfs_h *g); static char * @@ -387,21 +386,6 @@ launch_direct (guestfs_h *g, void *datav, const char *arg) return -1; } - /* Try to guess if KVM is available. We are just checking that - * /dev/kvm...
2007 May 20
1
beating a dead horse - proper association selection
...d - number - created_by - approved_by now created_by and approved_by are both id''s of employees. in most cases, two different employees. currently i do something like //controller @open_orders = Order.open_orders //model def self.open_orders find(:all, :conditions => [''is_open = ?'', true], :order => "created_on desc") end //view <% for order in @open_orders %> Order Number: <%=h order.number %><br /> <% end %> what type of association do i need in order to do something like order.creator work and have it return the more f...
2014 Jul 10
4
[PATCH 1/5] utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
--- utils/mkdiskimage.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mkdiskimage.in b/utils/mkdiskimage.in index 533193a..a95a077 100644 --- a/utils/mkdiskimage.in +++ b/utils/mkdiskimage.in @@ -218,7 +218,7 @@ $totalsize = $c*$h*$s; $tracks = $c*$h; # If -s is given, try to simply use truncate... -unless ($opt{'s'} && truncate(OUTPUT,
2014 Jan 30
1
[PATCH] Mending proposals for mkdiskimage
...$pentry = 2 if ( $opt{'2'} ); @@ -107,7 +109,9 @@ if ( $opt{'z'} ) { if ( $opt{'M'} && $h && $s ) { # Specify size in megabytes, not in cylinders + $mb = $c; $c = ($c*1024*2)/($h*$s); + $zero_tail = ($mb * 1024 * 2 - $c * $h * $s); } $is_open = 0; @@ -116,15 +120,8 @@ if ( $c == 0 && $file ne '' ) { $len = 0; if ( sysopen(OUTPUT, $file, O_RDWR, 0666) ) { $is_open = 1; - - if ( (@filestat = stat(OUTPUT)) && S_ISREG($filestat[2]) ) { - $len = $filestat[7] >> 9; - } elsif ( $is_linux &&...
2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine,
2010 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
..._enumerate_get_list_entry(enumerator); + struct udev_list_entry* entry; + + udev_list_entry_foreach(entry, entries) + { + core_count++; + } + } + + udev_enumerate_unref(enumerator); + udev_unref(udev); + + ifstream input("/proc/cpuinfo"); + if(input.is_open()) + { + string regexstr = "(.*\\S)\\s*:\\s*(\\S.*)"; + int expected = 3; + int found[expected * 3]; + const char* pcre_error; + int pcre_error_offset; + pcre* regex; + bool done = false; + bool started = false; + + regex = pcre_compile(rege...
2018 Oct 15
2
Bug Report, .vhdx file not attaching
...nix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsOz0P6y libguestfs: launch: umask=0022 libguestfs: launch: euid=1000 libguestfs: is_openable: /dev/kvm: Permission denied libguestfs: trace: get_backend_setting "force_tcg" libguestfs: trace: get_backend_setting = NULL (error) libguestfs: warning: current user is not a member of the KVM group (group ID 132). This user cannot access /dev/kvm, so libguestfs may run very slowly....
2013 Mar 11
0
[LLVMdev] YAML IO problems
...d("bool_test", fb.boolTest); io.mapRequired("directory", fb.directory); io.mapRequired("suffix", fb.suffix); io.mapRequired("int_test", fb.intTest); } }; } } int main() { ifstream jsonFile("yaml.json"); if (jsonFile.is_open()) { // Read file into a string string jsonSource((istreambuf_iterator<char>(jsonFile)), istreambuf_iterator<char>()); jsonFile.close(); FooBar doc; Input yin(jsonSource.c_str()); yin >> doc; cout << "bool_test: &qu...
2014 Jan 30
0
[PATCH 03/05] utils/mkdiskimage.in: Replaced the partly linux-specific file size determination by a sysseek() experiment
...-30 20:50:59.000000000 +0100 @@ -19,6 +19,7 @@ use bytes; use integer; use Fcntl; +use Fcntl qw(:seek); use Errno; use Cwd; use IO::Handle; # For flush() @@ -116,15 +117,8 @@ if ( $c == 0 && $file ne '' ) { $len = 0; if ( sysopen(OUTPUT, $file, O_RDWR, 0666) ) { $is_open = 1; - - if ( (@filestat = stat(OUTPUT)) && S_ISREG($filestat[2]) ) { - $len = $filestat[7] >> 9; - } elsif ( $is_linux && S_ISBLK($filestat[2]) ) { - $blksize = pack("L!", 0); - if ( ioctl(OUTPUT, $BLKGETSIZE, $blksize) == 0 ) { - $len = unpack("L!...
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...struct udev_list_entry* entry; + + udev_list_entry_foreach(entry, entries) + { + core_count++; + } + set_number_of_cores(core_count); + } + + udev_enumerate_unref(enumerator); + udev_unref(udev); + + ifstream input("/proc/cpuinfo"); + if(input.is_open()) + { + string regexstr = "(.*\\S)\\s*:\\s*(\\S.*)"; + int expected = 3; + int found[expected * 3]; + const char* pcre_error; + int pcre_error_offset; + pcre* regex; + bool done = false; + bool started = false; + + regex = pcre_compile(rege...
2014 Jan 30
2
[PATCH 02/05] utils/mkdiskimage.in: With option -s: Avoid zeroizing the partition even if truncate() failed
utils/mkdiskimage.in: With option -s: Avoid zeroizing the partition even if truncate() failed. --- utils/mkdiskimage_patched_01.in 2014-01-30 20:43:02.000000000 +0100 +++ utils/mkdiskimage.in 2014-01-30 20:45:09.000000000 +0100 @@ -217,8 +217,11 @@ print OUTPUT "\x55\xaa"; $totalsize = $c*$h*$s; $tracks = $c*$h; -# If -s is given, try to simply use truncate... -unless
2014 Jan 30
2
[PATCH 04/05] utils/mkdiskimage.in: New option -S to sync zeroizing after each cylinder and to issue pacifier messages
utils/mkdiskimage.in: New option -S to sync zeroizing after each cylinder and to issue pacifier messages. --- utils/mkdiskimage_patched_03.in 2014-01-30 20:54:27.000000000 +0100 +++ utils/mkdiskimage.in 2014-01-30 20:59:19.000000000 +0100 @@ -139,6 +139,7 @@ if ( $file eq '' || $c < 1 || $h < 1 || print STDERR " -4 use partition entry 4 (standard for
2011 Jul 21
2
Libguestfs hangs after issuing a launch command
...r [00000ms] visiting /usr/lib/guestfs/supermin.d/hostfiles supermin helper [00024ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [00125ms] finished creating appliance libguestfs: [00129ms] begin testing qemu features libguestfs: [00144ms] finished testing qemu features libguestfs: is_openable: /dev/kvm: No such file or directory libguestfs: accept_from_daemon: 0x7f0e3007dee0 g->state = 1 libguestfs: [00146ms] /usr/bin/kvm \ -drive 'file=/home/yeswanth/VirtualBox VMs/damnit/damnit.vdi,cache=off,if=virtio' \ -nodefconfig \ -nodefaults \ -nographic \ -m 5...
2015 Jul 26
1
Get term from document by position
...ocid=" << *i // << " [" << i.get_document().get_data() << "]\n\n"; } //saves content of text.txt to text_str // void MyText::set_string() { text_str=""; std::ifstream myfile ("text.txt"); std::string line; if (myfile.is_open()) { while ( std::getline (myfile,line) ) { text_str=text_str+" "+line; } myfile.close(); } else { std::cout << "Unable to open file text.txt"; exit(1); } }
2011 Oct 28
2
Inspecting VMware OVFs
...in helper [00025ms] visiting /usr/lib64/guestfs/supermin.d/init.img supermin helper [00093ms] finished creating appliance libguestfs: [00095ms] begin testing qemu features libguestfs: [00107ms] finished testing qemu features libguestfs: accept_from_daemon: 0x2123650 g->state = 1 libguestfs: is_openable: /dev/kvm: No such file or directory libguestfs: [00122ms] /usr/bin/qemu-kvm \\n -drive file=Fedora15-2-disk1.vmdk,cache=off,if=virtio \\n -nodefconfig \\n -nodefaults \\n -nographic \\n -m 500 \\n -no-reboot \\n -no-hpet \\n -device virtio-serial \\n -serial stdio \\n...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
...hitecture = "None"; - unsigned long memory = 0; - bool beeping = false; +string +Host:: get_uuid() const +{ + return _uuid; +} - ifstream input("/var/lib/dbus/machine-id"); +void +Host::set_hostname(const string hostname) +{ + _hostname = hostname; +} - if(input.is_open()) - { - getline(input, uuid); - input.close(); - } +string +Host::get_hostname() const +{ + return _hostname; +} - if(!uname(&details)) - { - hostname = string(details.nodename); - architecture = string(details.machine); - } - else - { - throw runti...
2012 Apr 12
5
[PATCH 0/4] libguestfs cannot open disk images which are symlinks to files that contain ':' (colon) character (RHBZ#812092).
Note: This is a regression in RHEL 6.3. Please review this patch urgently. The description of the bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=812092 This patch set attempts to fix the problem conservatively, because it's a very high risk codepath and very late in the development of RHEL 6.3. The first patch reverts the behaviour of calling realpath(3) and checking for
2016 May 18
2
[PATCH v2 0/2] lib: qemu: Memoize qemu feature detection.
v1 -> v2: - Rebase on top of Pino's version work. Two patches went upstream, these are the two remaining patches. Note the generation number is still inside the qemu.stat file. We could put it in the filename, I have no particular preference. Rich.
2012 Jun 12
5
[PATCH 0/5] Assorted patches to add virtio-scsi support.
These assorted patches end up with adding virtio-scsi support to libguestfs. It passes libguestfs-test-tool, but I haven't yet tried to run the full set of tests. In theory > 26 devices can be added, but it's likely that certain parts of the daemon will break if you actually try this. This of course needs to be fixed. Thanks Paolo Bonzini for invaluable help. Rich.