<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>It works, but I should delete</div><div><br></div><div style="font-weight: bold;">if (guestfs_umount_all (destg) == -1)<br>    exit (EXIT_FAILURE);</div><div><br></div><div>in<span style="color: rgb(255, 0, 0);"> main()</span> function and</div><div style="font-weight: bold;"><br></div><div style="font-weight: bold;">/* Clean up. */<br>  if (guestfs_umount_all (srcg) == -1) {<br>    pthread_cancel (threaddata->mainthread);<br>    exit (EXIT_FAILURE);<br>  }</div><div><br></div><div>in the <span style="color: rgb(255, 0, 0);">start_scrthread() </span>function or it will return an error after the program finish:</div><div><br></div><div>libguestfs: error: umount_all: umount: /sys/fs/cgroup/systemd: umount: /sys/fs/cgroup/systemd: device is
 busy.<br>        (In some cases useful info about processes that use<br>         the device is found by lsof(8) or fuser(1))<br><br></div><div><br></div></div></body></html>