[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

Divyanshu Kumar dkumar3 at opentext.com
Wed Sep 20 09:53:19 UTC 2023


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>


More information about the Libguestfs mailing list