Hi Mr.Rich,
I downloaded libguestfs-.1.16.5.tar.gz package on www.libguestfs.org
I tried to patch this package with the two patches you gave me. Here is the result I got:

[root@Fedora16 Downloads]# tar -xvf libguestfs-1.16.5.tar.gz
[root@Fedora16 Downloads]# patch -Np1 --ignore-whitespace -d libguestfs-1.16.5 < p1.patch
patching file src/launch.c
Hunk #1 succeeded at 833 (offset -11 lines).

[root@Fedora16 Downloads]# patch -Np1 --ignore-whitespace -d libguestfs-1.16.5 < p2.patch
patching file .gitignore
Hunk #1 succeeded at 73 with fuzz 2.
patching file examples/Makefile.am
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED -- saving rejects to file examples/Makefile.am.rej
patching file examples/copy_over.c

p1.patch and p2.patch are the 2 patches respectively.
I tried --ignore-whitespace flag and dos2unix on p2.patch but still failed.
I can get into examples/Makefile.am and patch it manually but I want something automatically.
Can you take a look at the patch please.
Thanks.

From: Richard W.M. Jones <rjones@redhat.com>
To: THO HUYNH <feeliwood@yahoo.com>; libguestfs@redhat.com
Cc: "libguestfs@redhat.com" <libguestfs@redhat.com>
Sent: Friday, 9 March 2012, 20:19
Subject: Re: [Libguestfs] mounting using guestfish


Try this program.  You will need both patches ...

https://www.redhat.com/archives/libguestfs/2012-March/msg00044.html
https://www.redhat.com/archives/libguestfs/2012-March/msg00045.html

For libguestfs live you will have to modify the open_guest function,
to add 'GUESTFS_ADD_DOMAIN_LIVE, 1', and to remove all of the
inspect_os and mount code.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw