X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Freopen.c;h=9e1901839829a2bb8400f2ef378d938eeea3e86c;hb=6b2ae9a8b0efba044f4d409b70211aba450a6899;hp=f2d35c7fc669636def4bc7e55d7305b88e893346;hpb=625d0bd56189450f48b6308371bf08ee6312d59f;p=libguestfs.git diff --git a/fish/reopen.c b/fish/reopen.c index f2d35c7..9e19018 100644 --- a/fish/reopen.c +++ b/fish/reopen.c @@ -54,6 +54,10 @@ do_reopen (const char *cmd, int argc, char *argv[]) if (r >= 0) guestfs_set_verbose (g2, r); + r = guestfs_get_trace (g); + if (r >= 0) + guestfs_set_trace (g2, r); + r = guestfs_get_autosync (g); if (r >= 0) guestfs_set_autosync (g2, r); @@ -62,6 +66,9 @@ do_reopen (const char *cmd, int argc, char *argv[]) if (p) guestfs_set_path (g2, p); + if (progress_bars) + guestfs_set_progress_callback (g2, progress_callback, NULL); + /* Close the original handle. */ guestfs_close (g); g = g2;