Displaying 20 results from an estimated 32 matches for "guestfs_realpath".
2019 Jun 28
2
Re: Guestfish command - "copy-out" not working for symbolic links
If it is one time operation you can call 'realpath'
(http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
resolve symlink.
--
+380979184774
Mykola Ivanets
пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com> пише:
>
> HI,
>
> I’m trying to use copu-out command to copy files from remote disk but it’s not working if the file is symbolic link.
>
&g...
2016 Jan 26
1
[PATCH] inspect: resolve symlinks when detecting architecture
...GUESTFS_IS_FILE_OPTS_FOLLOWSYMLINKS, 1, -1) > 0) {
+ CLEANUP_FREE char *resolved = NULL;
+
+ /* Ignore errors from realpath and file_architecture calls. */
guestfs_push_error_handler (g, NULL, NULL);
- arch = guestfs_file_architecture (g, binaries[i]);
+ resolved = guestfs_realpath (g, binaries[i]);
+ /* If is_file above succeeded realpath should too, but better
+ * be safe than sorry.
+ */
+ if (resolved)
+ arch = guestfs_file_architecture (g, resolved);
guestfs_pop_error_handler (g);
if (arch) {
--
2.5.0
2019 Jun 28
2
Re: Guestfish command - "copy-out" not working for symbolic links
...June 28, 2019 2:00 AM
To: Chintan Patel
Cc: libguestfs@redhat.com<mailto:libguestfs@redhat.com>
Subject: Re: [Libguestfs] Guestfish command - "copy-out" not working for symbolic links
If it is one time operation you can call 'realpath'
(http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
resolve symlink.
--
+380979184774
Mykola Ivanets
пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com<mailto:Chintan.Patel@microsoft.com>> пише:
>
> HI,
>
> I’m trying to use copu-out command to copy files from remote disk but it’s not wor...
2019 Jun 28
1
Re: Guestfish command - "copy-out" not working for symbolic links
...stenavin@gmail.com>
Sent: Friday, June 28, 2019 2:00 AM
To: Chintan Patel
Cc: libguestfs@redhat.com
Subject: Re: [Libguestfs] Guestfish command - "copy-out" not working for symbolic links
If it is one time operation you can call 'realpath'
(http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
resolve symlink.
--
+380979184774
Mykola Ivanets
пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com> пише:
>
> HI,
>
> I’m trying to use copu-out command to copy files from remote disk but it’s not working if the file is symbolic link.
>
&g...
2019 Jun 28
2
Re: Guestfish command - "copy-out" not working for symbolic links
...00 AM
>> To: Chintan Patel
>> Cc: libguestfs@redhat.com
>> Subject: Re: [Libguestfs] Guestfish command - "copy-out" not working for symbolic links
>>
>> If it is one time operation you can call 'realpath'
>> (http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
>> resolve symlink.
>>
>> --
>> +380979184774
>> Mykola Ivanets
>>
>> пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com> пише:
>> >
>> > HI,
>> >
>> > I’m trying to use copu-out...
2019 Jun 28
0
Re: Guestfish command - "copy-out" not working for symbolic links
...e 28, 2019 2:00 AM
> *To:* Chintan Patel
> *Cc:* libguestfs@redhat.com
> *Subject:* Re: [Libguestfs] Guestfish command - "copy-out" not working
> for symbolic links
>
> If it is one time operation you can call 'realpath'
> (http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
> resolve symlink.
>
> --
> +380979184774
> Mykola Ivanets
>
> пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com>
> пише:
> >
> > HI,
> >
> > I’m trying to use copu-out command to copy files from remote disk...
2013 Oct 29
0
[PATCH] docs: guestfs_case_sensitive_path returns error on non-existent path
...00644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -7161,6 +7161,9 @@ created under Windows).
I<Note>:
This function does not handle drive names, backslashes etc.
+C<guestfs_case_sensitive_path> will return an error if given a path
+which does not exist.
+
See also C<guestfs_realpath>." };
{ defaults with
--
1.8.3.1
2016 Jan 26
2
[PATCH] inspect: Get architecture of Alpine Linux from /bin/busybox.
All the files in /bin are links to busybox. guestfs_file_architecture
doesn't follow symlinks so it fails. Therefore check /bin/busybox
(not a symlink) to find the architecture.
---
src/inspect-fs-unix.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c
index f915e86..6aaf5a1 100644
--- a/src/inspect-fs-unix.c
+++
2019 Jun 28
0
Re: Guestfish command - "copy-out" not working for symbolic links
...e 28, 2019 2:00 AM
> *To:* Chintan Patel
> *Cc:* libguestfs@redhat.com
> *Subject:* Re: [Libguestfs] Guestfish command - "copy-out" not working
> for symbolic links
>
> If it is one time operation you can call 'realpath'
> (http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
> resolve symlink.
>
> --
> +380979184774
> Mykola Ivanets
>
> пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com>
> пише:
> >
> > HI,
> >
> > I’m trying to use copu-out command to copy files from remote disk...
2019 Jun 28
0
Re: Guestfish command - "copy-out" not working for symbolic links
...00 AM
>> To: Chintan Patel
>> Cc: libguestfs@redhat.com
>> Subject: Re: [Libguestfs] Guestfish command - "copy-out" not working for symbolic links
>>
>> If it is one time operation you can call 'realpath'
>> (http://libguestfs.org/guestfs.3.html#guestfs_realpath) first to
>> resolve symlink.
>>
>> --
>> +380979184774
>> Mykola Ivanets
>>
>> пт, 28 черв. 2019 о 11:11 Chintan Patel <Chintan.Patel@microsoft.com> пише:
>> >
>> > HI,
>> >
>> > I’m trying to use copu-out...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2017 Jul 14
0
[PATCH 04/27] daemon: Reimplement ‘vfs_type’ API in OCaml.
...t
+val of_btrfsvol : string -> string -> t
+(** Create a mountable from various objects. *)
diff --git a/generator/actions_core.ml b/generator/actions_core.ml
index 26ed1274e..a6eb2c273 100644
--- a/generator/actions_core.ml
+++ b/generator/actions_core.ml
@@ -4872,6 +4872,7 @@ See also C<guestfs_realpath>." };
{ defaults with
name = "vfs_type"; added = (1, 0, 75);
style = RString (RPlainString, "fstype"), [String (Mountable, "mountable")], [];
+ impl = OCaml "Blkid.vfs_type";
tests = [
InitScratchFS, Always, TestResultStrin...
2013 Jan 24
3
[REVIEW ONLY] Mountable patches
These 3 patches implement support for APIs which must accept a mountable, but
don't update apis which must return mountables.
Matt
2013 Feb 07
12
[PATCH 01/12] generator: Add new Mountable argument type
This type is initially identical to Device.
---
generator/bindtests.ml | 2 +-
generator/c.ml | 7 +++++--
generator/csharp.ml | 6 ++++--
generator/daemon.ml | 4 ++--
generator/erlang.ml | 6 +++---
generator/fish.ml | 8 ++++----
generator/gobject.ml | 11 ++++++-----
generator/haskell.ml | 11 +++++++----
generator/java.ml | 10 +++++-----
2017 May 04
4
[PATCH 0/3] generator: Allow returned strings to be annotated as devices.
If we want to permit more than 255 drives to be added, then we will
have to add the disks to the same virtio-scsi target using different
unit (LUN) numbers.
Unfortunately SCSI LUN enumeration in the Linux is not deterministic
(eg. two disks with target=0, lun=[0,1] can be enumerated as /dev/sda
or /dev/sdb randomly). Dealing with that will require some very
complex device name translation on the
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in:
https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html
Rich.
2017 Jun 03
12
[PATCH v2 00/12] Allow APIs to be implemented in OCaml.
Version 1 was here:
https://www.redhat.com/archives/libguestfs/2017-June/msg00003.html
This patch series reimplements a few more APIs in OCaml, including
some very important core APIs like ?list_filesystems? and ?mount?.
All the tests pass after this.
The selection of APIs that I have moved may look a little random, but
in fact they are all APIs consumed by the inspection code (and some
more
2017 Jun 05
19
[PATCH v3 00/19] Allow APIs to be implemented in OCaml.
v2 was here:
https://www.redhat.com/archives/libguestfs/2017-June/msg00008.html
This series gets as far as a working (and faster) reimplementation of
‘guestfs_list_filesystems’.
I also have another patch series on top of this one which reimplements
the inspection APIs inside the daemon, but that needs a bit more work
still, since inspection turns out to be a very large piece of code.
Rich.
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...quot;path"], [];
+ style = RString "rpath", [String (Pathname, "path")], [];
tests = [
InitISOFS, Always, TestResultString (
[["case_sensitive_path"; "/DIRECTORY"]], "/directory"), [];
@@ -4870,7 +4870,7 @@ See also C<guestfs_realpath>." };
{ defaults with
name = "vfs_type"; added = (1, 0, 75);
- style = RString "fstype", [Mountable "mountable"], [];
+ style = RString "fstype", [String (Mountable, "mountable")], [];
tests = [
InitScratchFS, Alw...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator.
Rich.