Displaying 20 results from an estimated 159 matches for "file_existed".
2016 May 26
2
[PATCH] customize: random_seed: avoid one file checking for existing files
When the random-seed file is found, then avoid checking its existance
again.
---
customize/random_seed.ml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/customize/random_seed.ml b/customize/random_seed.ml
index e4c955e..1633aed 100644
--- a/customize/random_seed.ml
+++ b/customize/random_seed.ml
@@ -35,7 +35,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root =
2012 Feb 22
4
Custom function issue
Hi,
I needed a function to check if a file is existing on the Debian box I
am configuring. So I used this one
module Puppet::Parser::Functions
newfunction(:file_exists, :type => :rvalue) do |args|
if File.exists?(args[0])
return 1
else
return 0
end
end
end
It work greats for some service where apache2 doesn''t work for me.
I am using it this way
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
I have a problem with a mismatch between RSpec Rails and the actual
behavior when using GetText, and would be glad for suggestions how to
best solve this.
When using GetText a failure is reported for the following simplified
specification:
describe SamplesController, "when requesting /samples" do
it "should render index " do
get ''index''
2020 May 15
1
[PATCH] v2v: fix UEFI bootloader for linux guests
Not all UEFI guests can survive conversion, because of lost bootloader
information in UEFI NVRAM. But some guest can cope with this because they
have a fallback bootloader and use UEFI Removable Media Boot Behavior.
(see https://uefi.org/sites/default/files/resources/UEFI_Spec_2_8_A_Feb14.pdf
3.5.1.1 Removable Media Boot Behavior) to load. If UEFI firmware can't find
a bootloader in its
2012 Jun 08
18
[PATCH 0 of 4 RFC] Populate-on-demand: Check pages being returned by the balloon driver
Populate-on-demand: Check pages being returned by the balloon driver
This patch series is the second result of my work last summer on
decreasing fragmentation of superpages in a guests'' p2m when using
populate-on-demand.
This patch series is against 4.1; I''m posting it to get feedback on
the viability of getting a ported version of this patch into 4.2.
As with the previous
2020 Jul 24
3
[PATCH v2] v2v: fix UEFI bootloader for linux guests
v2:
Rich, I hope I've done all modifications according to your comments, namely:
* moved the code from linux_bootloaders to convert_linux
* made minor code modifications
---
Not all UEFI guests can survive conversion, because of lost bootloader
information in UEFI NVRAM. But some guest can cope with this because they
have a fallback bootloader and use UEFI Removable Media Boot
2010 Nov 08
11
Default ownership for static files
Hi,
I try to serve a file
file { "/root/test3.txt":
ensure => file,
source => "puppet:///yum/test.txt",
}
On the puppetmaster this files look like this
#$ ls -n test.txt
-rw-r--r-- 1 502 301 4 8 Nov 16:25 test.txt
Finally, here is my question: What ownership may I expect on the
resulting file ?
Actually this is the result for me:
#$ ls -l
2008 Sep 05
8
Gluster update | need your support
Dear Members,
Even though Gluster team is growing at a steady phase, our aggressive development
schedule out phases our resources. We need to expand and also maintain a 1:1 developer /
QA engineer ratio. Our major development focus in the next 8 months will be towards:
* Large scale regression tests (24/7/365)
* Web based monitoring and management
* Hot upgrade/add/remove of storage nodes
2016 May 26
0
Re: [PATCH] customize: random_seed: avoid one file checking for existing files
On Thu, May 26, 2016 at 01:45:05PM +0200, Pino Toscano wrote:
> When the random-seed file is found, then avoid checking its existance
> again.
> ---
> customize/random_seed.ml | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/customize/random_seed.ml b/customize/random_seed.ml
> index e4c955e..1633aed 100644
> ---
2007 May 23
2
rspec mocha and controller specs without integrated_views
The ability to choose a mocking framework is great as I prefer mocha, but I
am have problems.
On my controller specs, I am forced to ''integrate_views'' as the following
code below shows you, the mocking of views is rspec specific. See stub!
versus mocha''s stub
unless block_given?
unless integrate_views?
2017 Feb 22
5
[PATCH 0/4] v2v: windows: Only try to install rhev-apt if the target is RHV (RHBZ#1161019).
The bug is:
https://bugzilla.redhat.com/show_bug.cgi?id=1161019
This makes a few other minor refactorings to the code.
Rich.
2011 Jun 15
2
[PATCH 1/2] use apt-get instead of aptitude
---
config.ml.in | 2 +-
configure.ac | 2 +-
febootstrap_debian.ml | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/config.ml.in b/config.ml.in
index a8c008a..262c913 100644
--- a/config.ml.in
+++ b/config.ml.in
@@ -22,7 +22,7 @@ let package_version = "@PACKAGE_VERSION@"
let yum = "@YUM@"
let rpm = "@RPM@"
2014 Mar 15
4
[supermin 1/2] chroot: Fix corner case introduced with dpkg-divert support
---
src/chroot.ml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/chroot.ml b/src/chroot.ml
index b5c1e53..9e522d9 100644
--- a/src/chroot.ml
+++ b/src/chroot.ml
@@ -26,7 +26,9 @@ let build_chroot debug files outputdir =
List.iter (
fun file ->
try
- let path = file.ft_source_path in
+ let path = if file_exists file.ft_source_path
+
2011 Oct 18
5
[PATCH febootstrap] Some cleanups for Debian and Ubuntu
I just tried to get libguestfs to compile on Ubuntu 11.10 using the
latest febootstrap, and the following patches were necessary for me.
They are all just reasonable code cleanups *except* for patch 5/5
which is a gross hack for something I don't understand about how
Ubuntu 11.10 multiarch support works.
Rich.
2018 May 18
2
[PATCH] RFC: v2v: use RHV Setup Tools ISO if available
If the RHV Setup Tools ISO is installed, open it, and copy RHEV APT from
there, instead of using (if available) the executable located in the
virt-tools data directory.
This way, RHV conversion hosts with the RHV Setup Tools ISO installed
will always install the latest version when convering Windows guests,
no matter which version is (eventually) shipped as virt-tools.
---
v2v/convert_windows.ml
2015 Mar 18
5
[PATCH 0/2] [RFE] virt-builder should support download resume
This patchset adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Maros Zatko (2):
mllib: allow external_command to return [] on nonzero return value
builder: support for
2005 Oct 10
6
Dangling MS Access DB Lock Files *.ldb
I have an intermittent problem with dangling MS Access DB lock files.
In a productive environment with N batch queus (each on a separate
Windows XP Professional) a scheduler PC dispatches the work load to
a free queue by means of modifying a simple MS Access DB file
called "PRIM.mdb", which resides on a Samba 3.0.20 share. Each free
queue PC polls the same MS Access DB file every 60
2007 Jan 19
0
[PATCH] Update pygrub for new Solaris directory names
# HG changeset patch
# User john.levon@sun.com
# Date 1169173194 28800
# Node ID 4dcfc81c997ef92f8fa8e1622655007a0e634bca
# Parent cef8ae47e6d6a70817d67849a59c0315f6cddbba
Update pygrub for new Solaris directory names.
Signed-off-by: John Levon <john.levon@sun.com>
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@
2007 Nov 06
1
Help: Asterisk info
I am getting this error under system info:
File
Line
Command
Message
common_functions.php
314
file_exists(/proc/scsi/scsi)
the file does not exist on your machine
Does anybody know how to fix this?
Thank you in advance
Jarga
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Mar 23
1
Tinc graph and label info.
Hi,
I use tinc with the option GraphDumpFile=/etc/tinc/ci00036/grapd.dot
In the graph there is the label section:
ci00036 [label = "ci00036"];
ci00037 [label = "ci00037"];
ci00038 [label = "ci00038"];
Is there an option to set the label in the tinc config file or host file
to a custom text ?
Something that is easy to read and has some meaning