Displaying 20 results from an estimated 41 matches for "absolute_path".
2016 Aug 08
1
[PATCH] sparsify, v2v: use Common_utils.absolute_path
...ge virt-sparsify(1).
(* The input disk must be an absolute path, so we can store the name
* in the overlay disk.
*)
- let indisk =
- if not (Filename.is_relative indisk) then
- indisk
- else
- Sys.getcwd () // indisk in
+ let indisk = absolute_path indisk in
(* Check the output is not a char special (RHBZ#1056290). *)
if is_char_device outdisk then
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index d56c476..3926602 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -63,9 +63,7 @@ class input_disk input_format disk...
2006 Mar 15
1
file_column imagemagick strangeness
...jpg'': No such file or directory:
(''image'' should be `/home/dorian/www/dev.domain.dom/public/images/example.jpg'')
This all happens in the file magick_file_column.rb in the method transform_with_magick. The line raising the error is:
img = ::Magick::Image::read(absolute_path).first
and if I replace absolute_path with a string I get the same truncation happening.
I''m going mad trying to sort this out. Has anyone else had this happen to them, or have *any* idea what might be going on here?
dorian
--
I do things for love or money
2005 Jun 05
2
Problem in the path for executables...
Hi,
I have a windows executable which I am trying to run in Linux using wine.
When I execute the command :
wine {ABSOLUTE_PATH}/file1.exe,
file1.exe runs many other executables internally, like file2.exe, file3.exe
and file4.exe.
Now when file1.exe is trying to run the other executables, it is not able to
get the path of the executables. I have the "PATH" enironment variable set
correctly. But I do not think th...
2016 Sep 12
2
[PATCH] v2v: ova: Make OVA directory public readable to work around libvirt bug (RHBZ#1375157).
...v/input_ova.ml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
index 4f848e2..bb9cb1b 100644
--- a/v2v/input_ova.ml
+++ b/v2v/input_ova.ml
@@ -104,6 +104,19 @@ object
(* Exploded path must be absolute (RHBZ#1155121). *)
let exploded = absolute_path exploded in
+ (* If virt-v2v is running as root, and the backend is libvirt, then
+ * we have to chmod the directory to 0755 and files to 0644
+ * so it is readable by qemu.qemu. This is libvirt bug RHBZ#890291.
+ *)
+ if Unix.geteuid () = 0 then (
+ let libguestfs_backend...
2015 Jan 16
2
[PATCH 1/2] mllib: add simple qemu filename sanitizing function
...n_utils.ml | 13 +++++++++++++
mllib/common_utils.mli | 8 ++++++++
2 files changed, 21 insertions(+)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index b143710..4d3bf95 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -603,3 +603,16 @@ let is_directory path =
let absolute_path path =
if not (Filename.is_relative path) then path
else Sys.getcwd () // path
+
+(* Sanitizes a filename for passing it safely to qemu/qemu-img.
+ *
+ * If the filename is something like "file:foo" then qemu-img will
+ * try to interpret that as "foo" in the file:/// prot...
2007 Jul 25
3
Using system() to execute a script outside of Rails but in a directory in the Rails app...
I''m trying to hack around a previously mentioned RMagick problem,
confirmed to exist inside of Rails but not outside.
Thus, I''d like to call a Ruby script from with in a Rails controller.
Like so:
system("#{RAILS_ROOT}/public/images/thumb_and_comp.rb",
"#{@asset.file_name}")
But it never seems to get executed.
Permissions are set to 755 on the script.
Any
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one,
with changes coming from the blktap2.5 one.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2020 Mar 23
6
[PATCH nbdkit 0/3] msys2 support for review
I pushed a few of the msys2 patches upstream. I changed the way that
$(SHARED_LDFLAGS) works so it's more to my liking, and the others were
pushed unchanged. Three patches remain which I'm posting on the
mailing list for proper review.
Rich.
2020 Mar 23
0
[PATCH nbdkit 1/3] include: Function indirection for PE DLL
...t (args, msg);
+ _nbdkit_functions.vdebug (msg, args);
+ va_end (args);
+}
+static void nbdkit_vdebug (const char *msg, va_list args)
+ ATTRIBUTE_FORMAT_PRINTF (1, 0);
+static void nbdkit_vdebug (const char *msg, va_list args)
+{
+ _nbdkit_functions.vdebug (msg, args);
+}
+
+static char *nbdkit_absolute_path (const char *path)
+{
+ return _nbdkit_functions.absolute_path (path);
+}
+static int64_t nbdkit_parse_size (const char *str)
+{
+ return _nbdkit_functions.parse_size (str);
+}
+static int nbdkit_parse_bool (const char *str)
+{
+ return _nbdkit_functions.parse_bool (str);
+}
+static int nbdkit_p...
2016 Sep 12
0
Re: [PATCH] v2v: ova: Make OVA directory public readable to work around libvirt bug (RHBZ#1375157).
...e changed, 13 insertions(+)
>
> diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
> index 4f848e2..bb9cb1b 100644
> --- a/v2v/input_ova.ml
> +++ b/v2v/input_ova.ml
> @@ -104,6 +104,19 @@ object
> (* Exploded path must be absolute (RHBZ#1155121). *)
> let exploded = absolute_path exploded in
>
> + (* If virt-v2v is running as root, and the backend is libvirt, then
> + * we have to chmod the directory to 0755 and files to 0644
> + * so it is readable by qemu.qemu. This is libvirt bug RHBZ#890291.
> + *)
> + if Unix.geteuid () = 0 then (...
2020 Aug 25
0
[RFC nbdkit PATCH 4/5] file: Utilize nbdkit_string_intern
Instead of needing to provide .unload, we can let nbdkit manage the
lifetime for us. However, if we like this approach, it may be wiser
to introduce new variants of nbdkit_realpath/absolute_path which
return const char * already intern'd.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
See the cover letter: if we like this, there are several other plugins
that could also reduce their .unload, or maybe we want to add
convenience functions to make the combo
'nbdkit_realpath...
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
...ollowing fields:
Image invalid
I traced that part back to this code from within file column.
from "/file-column/lib/magick_file_column"
<code>
class BaseUploadedFile # :nodoc:
def transform_with_magick
if needs_resize?
begin
img = ::Magick::Image::read(absolute_path).first
rescue ::Magick::ImageMagickError
@magick_errors ||= []
@magick_errors << "invalid"
return
end
</code>
now im wondering what do i need to do or change to get this working
right? it really bugs me becuase it works fine on m...
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
...ems with the following fields:
Image invalid
im pretty sure that part was generated by this code from within file column.
from "/file-column/lib/magick_file_column"
<code>
class BaseUploadedFile # :nodoc:
def transform_with_magick
if needs_resize?
begin
img = ::Magick::Image::read(absolute_path).first
rescue ::Magick::ImageMagickError
@magick_errors ||= []
@magick_errors << "invalid"
return
end
</code>
now im wondering what do i need to do or change to get this working
right? it really bugs me becuase it works fine on my box, and the error
it gives doesnt tell me mu...
2020 Mar 23
0
[PATCH nbdkit 2/3] server: Inject API functions for Windows
...orm");
+ return -1;
+}
+
+static void init_functions ()
+{
+ functions = malloc (sizeof *functions);
+ if (functions == NULL) {
+ perror ("malloc");
+ exit (EXIT_FAILURE);
+ }
+ functions->verror = nbdkit_verror;
+ functions->vdebug = nbdkit_vdebug;
+ functions->absolute_path = nbdkit_absolute_path;
+ functions->parse_size = nbdkit_parse_size;
+ functions->parse_bool = nbdkit_parse_bool;
+ functions->parse_int = nbdkit_parse_int;
+ functions->parse_unsigned = nbdkit_parse_unsigned;
+ functions->parse_int8_t = nbdkit_parse_int8_t;
+ functions->par...
2017 Dec 08
3
[PATCH v2 0/2] v2v: -o null: Use the qemu null device driver.
This changes the infrastructure to allow the target_file to be
a QEMU URI.
Rich.
2016 Sep 09
0
[PATCH 1/2] v2v: -i disk: Move code that creates name from disk to separate module.
...loop xs
- | [] -> name
- in
- loop suffixes in
- if name = "" then
- error (f_"-i disk: invalid input filename (%s)") disk;
+ let name = name_from_disk disk in
(* Get the absolute path to the disk file. *)
let disk_absolute = absolute_path disk in
diff --git a/v2v/name_from_disk.ml b/v2v/name_from_disk.ml
new file mode 100644
index 0000000..73caf34
--- /dev/null
+++ b/v2v/name_from_disk.ml
@@ -0,0 +1,41 @@
+(* virt-v2v
+ * Copyright (C) 2009-2016 Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or modif...
2006 Apr 07
4
file_column and animated gifs
hi,
is it possible to resize animated gifs with file_column?
if i upload an animated gif file with file_column than the animation no
longer exists...
--
Posted via http://www.ruby-forum.com/.
2012 May 16
0
Announce: Puppet 2.7.15rc1 Available
...k Fagerlund, Daniel Pittman, Nan Liu, Jeff McCune,
Ken Barber, Stefan Schulte, and James Turnbull
Puppet 2.7.15rc1 Changelog
===
Chris Price (2)
53e0057 Use internal domain name for module tool test
dae5539 (#14440) Hack to allow help faces to be used as API
Patrick Carlisle (9)
f4ba59e Use absolute_path in module install spec
3b144bf Revert "maint: use relative paths to fixtures."
12c5bda Fix a stub of ansicolor that I missed
ea740f6 Add Puppet::Util::Platform to abstract platform checks
91a4a7d Don''t use features to check for color in logging
d2b3ba0 Revert "Fix...
2006 Oct 18
4
Segmentation bug - file_column?
...ry to force a hard reboot to get back to it. (which is why I
upgraded)
Do you think the problem is in file_column somewhere? The line it
mentions is where it is calling ImageMagick:
def transform_with_magick
if needs_transform?
begin
img = ::Magick::Image::read(absolute_path).first <--
This is line 7
Thanks in advance for any ideas!!
Cameron
2017 Dec 08
0
[PATCH v2 2/2] v2v: -i vmx: Enhance VMX support with ability to use ‘-it ssh’ transport.
...uld be misinterpreted by qemu.
+ * This constructs a QEMU URI of the filename relative to the
+ * vmx file (which might be remote over SSH).
*)
-and qemu_uri_of_filename vmx_filename filename =
- if not (Filename.is_relative filename) then
- filename
- else (
- let dir = Filename.dirname (absolute_path vmx_filename) in
- dir // filename
- )
+and qemu_uri_of_filename vmx_source filename =
+ match vmx_source with
+ | File vmx_filename ->
+ (* Always ensure this returns an absolute path to avoid
+ * any confusion with filenames containing colons.
+ *)
+ absolute_path_from_...