block.c (1976058109890892db8ec88bfd3273f79c459f6b) | block.c (a1f688f4152e65260b94f37543521ceff8bfebe4) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 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 --- 1051 unchanged lines hidden (view full) --- 1060 } else if (bs->filename[0]) { 1061 error_setg_errno(errp, -ret, "Could not open '%s'", bs->filename); 1062 } else { 1063 error_setg_errno(errp, -ret, "Could not open image"); 1064 } 1065 goto free_and_fail; 1066 } 1067 | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 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 --- 1051 unchanged lines hidden (view full) --- 1060 } else if (bs->filename[0]) { 1061 error_setg_errno(errp, -ret, "Could not open '%s'", bs->filename); 1062 } else { 1063 error_setg_errno(errp, -ret, "Could not open image"); 1064 } 1065 goto free_and_fail; 1066 } 1067 |
1068 if (bs->encrypted) { 1069 error_report("Encrypted images are deprecated"); 1070 error_printf("Support for them will be removed in a future release.\n" 1071 "You can use 'qemu-img convert' to convert your image" 1072 " to an unencrypted one.\n"); 1073 } 1074 |
|
1068 ret = refresh_total_sectors(bs, bs->total_sectors); 1069 if (ret < 0) { 1070 error_setg_errno(errp, -ret, "Could not refresh total sector count"); 1071 goto free_and_fail; 1072 } 1073 1074 bdrv_refresh_limits(bs, &local_err); 1075 if (local_err) { --- 5125 unchanged lines hidden --- | 1075 ret = refresh_total_sectors(bs, bs->total_sectors); 1076 if (ret < 0) { 1077 error_setg_errno(errp, -ret, "Could not refresh total sector count"); 1078 goto free_and_fail; 1079 } 1080 1081 bdrv_refresh_limits(bs, &local_err); 1082 if (local_err) { --- 5125 unchanged lines hidden --- |