qemu-img.c (80d6f5eae79b009bf3e02e59e9e225db42ddf887) qemu-img.c (87ea75d5e135c0527c6a9dbac4317913409f28c7)
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

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

2559 size++;
2560 break;
2561 default:
2562 relative = 0;
2563 break;
2564 }
2565
2566 /* Parse size */
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

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

2559 size++;
2560 break;
2561 default:
2562 relative = 0;
2563 break;
2564 }
2565
2566 /* Parse size */
2567 param = qemu_opts_create_nofail(&resize_options);
2567 param = qemu_opts_create(&resize_options, NULL, 0, &error_abort);
2568 if (qemu_opt_set(param, BLOCK_OPT_SIZE, size)) {
2569 /* Error message already printed when size parsing fails */
2570 ret = -1;
2571 qemu_opts_del(param);
2572 goto out;
2573 }
2574 n = qemu_opt_get_size(param, BLOCK_OPT_SIZE, 0);
2575 qemu_opts_del(param);

--- 165 unchanged lines hidden ---
2568 if (qemu_opt_set(param, BLOCK_OPT_SIZE, size)) {
2569 /* Error message already printed when size parsing fails */
2570 ret = -1;
2571 qemu_opts_del(param);
2572 goto out;
2573 }
2574 n = qemu_opt_get_size(param, BLOCK_OPT_SIZE, 0);
2575 qemu_opts_del(param);

--- 165 unchanged lines hidden ---