qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] debugging qemu-nbd.c


From: Skippy VonDrake
Subject: [Qemu-devel] debugging qemu-nbd.c
Date: Tue, 9 Apr 2013 10:18:50 -0400

Hello,

Apologies upfront if posting to this list is inappropriate.

I have an app that forks a process with calls qemu-nbd with an offset
into an image.
The app then uses libguestfs to attach the nbd device.
But it appears that qemu is failing.

I'm using the latest qemu sources and placed file log statements within
qemu-nbd.c to pinpoint the problem.

The statement: " if (chdir("/") < 0)"
appears to be the culprit.

But the subsequent err() call is never reached. If I pull 'chdir' out of
the 'IF' and assign a local var to its return - execution still seems to
stop on the 'chdir'. So there is no opportunity to examine its return.

What is the best approach to debugging this section of code?

Thanks,

Skippy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]