qemu-img.c (25956af3fe5dd0385ad8017bc768a6afe41e2a74) | qemu-img.c (e54ee1b385a9d084b4052b6db7391ea2fd799fa8) |
---|---|
1/* 2 * QEMU disk image utility 3 * 4 * Copyright (c) 2003-2008 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 --- 3783 unchanged lines hidden (view full) --- 3792 } 3793 3794 /* 3795 * Change the backing file. All clusters that are different from the old 3796 * backing file are overwritten in the COW file now, so the visible content 3797 * doesn't change when we switch the backing file. 3798 */ 3799 if (out_baseimg && *out_baseimg) { | 1/* 2 * QEMU disk image utility 3 * 4 * Copyright (c) 2003-2008 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 --- 3783 unchanged lines hidden (view full) --- 3792 } 3793 3794 /* 3795 * Change the backing file. All clusters that are different from the old 3796 * backing file are overwritten in the COW file now, so the visible content 3797 * doesn't change when we switch the backing file. 3798 */ 3799 if (out_baseimg && *out_baseimg) { |
3800 ret = bdrv_change_backing_file(bs, out_baseimg, out_basefmt); | 3800 ret = bdrv_change_backing_file(bs, out_baseimg, out_basefmt, false); |
3801 } else { | 3801 } else { |
3802 ret = bdrv_change_backing_file(bs, NULL, NULL); | 3802 ret = bdrv_change_backing_file(bs, NULL, NULL, false); |
3803 } 3804 3805 if (ret == -ENOSPC) { 3806 error_report("Could not change the backing file to '%s': No " 3807 "space left in the file header", out_baseimg); 3808 } else if (ret < 0) { 3809 error_report("Could not change the backing file to '%s': %s", 3810 out_baseimg, strerror(-ret)); --- 1671 unchanged lines hidden --- | 3803 } 3804 3805 if (ret == -ENOSPC) { 3806 error_report("Could not change the backing file to '%s': No " 3807 "space left in the file header", out_baseimg); 3808 } else if (ret < 0) { 3809 error_report("Could not change the backing file to '%s': %s", 3810 out_baseimg, strerror(-ret)); --- 1671 unchanged lines hidden --- |