qcow2.c (bc5ee6da7122f6fe93ed07241a44315a331487e9) qcow2.c (e54ee1b385a9d084b4052b6db7391ea2fd799fa8)
1/*
2 * Block driver for the QCOW version 2 format
3 *
4 * Copyright (c) 2004-2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3613 unchanged lines hidden (view full) ---

3622 if (qcow2_opts->has_backing_file) {
3623 const char *backing_format = NULL;
3624
3625 if (qcow2_opts->has_backing_fmt) {
3626 backing_format = BlockdevDriver_str(qcow2_opts->backing_fmt);
3627 }
3628
3629 ret = bdrv_change_backing_file(blk_bs(blk), qcow2_opts->backing_file,
1/*
2 * Block driver for the QCOW version 2 format
3 *
4 * Copyright (c) 2004-2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3613 unchanged lines hidden (view full) ---

3622 if (qcow2_opts->has_backing_file) {
3623 const char *backing_format = NULL;
3624
3625 if (qcow2_opts->has_backing_fmt) {
3626 backing_format = BlockdevDriver_str(qcow2_opts->backing_fmt);
3627 }
3628
3629 ret = bdrv_change_backing_file(blk_bs(blk), qcow2_opts->backing_file,
3630 backing_format);
3630 backing_format, false);
3631 if (ret < 0) {
3632 error_setg_errno(errp, -ret, "Could not assign backing file '%s' "
3633 "with format '%s'", qcow2_opts->backing_file,
3634 backing_format);
3635 goto out;
3636 }
3637 }
3638

--- 2228 unchanged lines hidden ---
3631 if (ret < 0) {
3632 error_setg_errno(errp, -ret, "Could not assign backing file '%s' "
3633 "with format '%s'", qcow2_opts->backing_file,
3634 backing_format);
3635 goto out;
3636 }
3637 }
3638

--- 2228 unchanged lines hidden ---