Richard W.M. Jones
2023-Sep-19 12:05 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
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 at redhat.com> > Sent: Tuesday, September 19, 2023 1:15 PM > To: Raja Ram Sharma <rsharma6 at opentext.com> > Cc: Teja Konapalli <tkonapalli at opentext.com>; libguestfs at redhat.com; Divyanshu Kumar <dkumar3 at 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!!Obbck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2BLm_19gJUs3OXuHRnZTv$ > Read my programming and virtualization blog: https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2BLm_19gJUs3OXrVS1VaN$ > 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__;!!Obbck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2BLm_19gJUs3OXjCvHvVp$-- 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 -------------- next part -------------- An embedded message was scrubbed... From: "Richard W.M. Jones" <rjones at redhat.com> Subject: Re: [EXTERNAL] - Re: LIBGUESTFS mount disk failure Date: Sun, 17 Sep 2023 09:41:36 +0100 Size: 2106 URL: <http://listman.redhat.com/archives/libguestfs/attachments/20230919/4b0cb274/attachment.eml>
Divyanshu Kumar
2023-Sep-20 09:53 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
Hi @Richard W.M. Jones, I am attaching a sample program of how we are using guestfs apis where we are getting this error guestfs_mount_local fail. Please take a look into this. Thanks, Divyanshu -----Original Message----- From: Richard W.M. Jones <rjones at redhat.com> Sent: Tuesday, September 19, 2023 5:36 PM To: Raja Ram Sharma <rsharma6 at opentext.com> Cc: Teja Konapalli <tkonapalli at opentext.com>; libguestfs at redhat.com; Divyanshu Kumar <dkumar3 at 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 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 at redhat.com> > Sent: Tuesday, September 19, 2023 1:15 PM > To: Raja Ram Sharma <rsharma6 at opentext.com> > Cc: Teja Konapalli <tkonapalli at opentext.com>; libguestfs at redhat.com; > Divyanshu Kumar <dkumar3 at 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-udl4zqOJCxZ6LL > > eu 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-udl4zqOJCxZ6LL > > eu 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!!Obb > ck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2BL > m_19gJUs3OXuHRnZTv$ Read my programming and virtualization blog: > https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!b > lek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2BLm_19gJUs3 > OXrVS1VaN$ 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__;!!Ob > bck6kTJA!blek-uFsj3xPSaSiNQrS-1lk59I6-udl4zqOJCxZ6LLeupvAFl6tPfod_GU2B > Lm_19gJUs3OXjCvHvVp$-- Richard Jones, Virtualization Group, Red Hat https://urldefense.com/v3/__http://people.redhat.com/*rjones__;fg!!Obbck6kTJA!ZE9Jts1w7JGiKHKAcLv1I72RncLG2NUVxKSn4yXEUiITBywqaqIgR4po1KK5rdHojo9l36xX1V-CKYfN$ Read my programming and virtualization blog: https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!ZE9Jts1w7JGiKHKAcLv1I72RncLG2NUVxKSn4yXEUiITBywqaqIgR4po1KK5rdHojo9l36xX1WGJ1lVR$ 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__;!!Obbck6kTJA!ZE9Jts1w7JGiKHKAcLv1I72RncLG2NUVxKSn4yXEUiITBywqaqIgR4po1KK5rdHojo9l36xX1XNZvfww$ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mount_vmdk.cpp URL: <http://listman.redhat.com/archives/libguestfs/attachments/20230920/80ce92af/attachment.ksh>
Richard W.M. Jones
2023-Sep-20 15:00 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
On Wed, Sep 20, 2023 at 09:53:19AM +0000, Divyanshu Kumar wrote:> Hi @Richard W.M. Jones, > > I am attaching a sample program of how we are using guestfs apis > where we are getting this error guestfs_mount_local fail.It works fine, I see no errors when I run it. This is the third and last time I'll repeat this. If you ignore it again then I won't reply to any more emails from you. So I advise you to read it very carefully: I need to see the program that you're trying to run, or a self-contained reproducer, and I also need to see the _complete_ output from the program from start to finish, not just small parts of it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html