Richard W.M. Jones
2020-Dec-10 21:52 UTC
[Libguestfs] Question: how to create symbolic link directly in a image.
On Wed, Dec 09, 2020 at 07:30:12PM -0800, newthis wrote:> There is a scenario where I need to create a symbolic link file in a image > file. > Is there some api or code snippet in libguestfs which can satisfy this > requirement?You need to use this API: https://libguestfs.org/guestfs.3.html#guestfs_ln_s For a full example, see something like: https://github.com/libguestfs/libguestfs/blob/master/examples/inspect-vm.c (Other programming languages are available) Rich. -- 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