On Tue, Sep 19, 2023 at 11:59:43AM +0000, Raja Ram Sharma wrote:
Hi Richard,
Thank you for the response, will set both handler and let you know.
when we try to execute guestfs_mount_local.
Getting below error :
[ 2023-09-19 13:34:05 ] errno: ( 0 ) : mount_local: unknown option 554101136 (this can
happen if a program is compiled against a newer version of libguestfs, then dynamically
linked to an older version)
I attach what I said previously.
Rich.
Setup details :
OS : (PRETTY_NAME="Red Hat Enterprise Linux 8.2 (Ootpa)")
Guesfs.h version : 1.50
Guestfish version : guestfish
1.38.4rhel=8,release=15.module+el8.2.0+5297+222a20af,libvirt
In Below scenario:
1. guestfs_mount_local_run
2. umount /mountpoint
3. Again, while trying to mount, after sleep of 20sec.
Thanks
RR
-----Original Message-----
From: Richard W.M. Jones <rjones(a)redhat.com>
Sent: Tuesday, September 19, 2023 1:15 PM
To: Raja Ram Sharma <rsharma6(a)opentext.com>
Cc: Teja Konapalli <tkonapalli(a)opentext.com>; libguestfs(a)redhat.com; Divyanshu
Kumar <dkumar3(a)opentext.com>
Subject: Re: [EXTERNAL] - Re: LIBGUESTFS mount disk failure
CAUTION: This email originated from outside of the organization. Do not click links or
open attachments unless you recognize the sender and know the content is safe. If you feel
that the email is suspicious, please report it using PhishAlarm.
On Sun, Sep 17, 2023 at 04:11:25PM +0000, Raja Ram Sharma wrote:
> One more help is needed :
>
https://urldefense.com/v3/__https://github.com/libguestfs/libguestfs/i
> ssues/124__;!!Obbck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeu
> pvAFl6tPfod_GU2BLm_19gJUs3OXp6_IUEM$
> /***************************************/
> I can get guestfs_last_error using function_callback and write to log file.
> But "event Handling" is not working Also, std::cout and std::cerr still
printing on terminal.
> Is there any workaround for Event Handling?
> How to completely disable/enable standard output?
> /***********************************/
>
> In short, Any Debugging sample program,
>
https://urldefense.com/v3/__https://github.com/libguestfs/libguestfs/i
> ssues/124__;!!Obbck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeu
> pvAFl6tPfod_GU2BLm_19gJUs3OXp6_IUEM$
In the two programs in that issue, the first program sets an event callback and the
second program sets an error handler. To capture all messages you must set both
together.
If you can produce a single, short reproducer which uses both types of handlers and still
prints to stderr, then I can look at that.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
https://urldefense.com/v3/__http://people.redhat.com/*rjones__;fg!!Obbck6...
Read my programming and virtualization blog:
https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!blek...
Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows
installers. Over 100 libraries supported.
https://urldefense.com/v3/__http://fedoraproject.org/wiki/MinGW__;!!Obbck...
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW