qcow2.c (3d861a01093f8eedfac9889746ccafcfd32039b7) | qcow2.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d) |
---|---|
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 --- 2255 unchanged lines hidden (view full) --- 2264 backing_fmt = qemu_opt_get_del(opts, BLOCK_OPT_BACKING_FMT); 2265 if (qemu_opt_get_bool_del(opts, BLOCK_OPT_ENCRYPT, false)) { 2266 flags |= BLOCK_FLAG_ENCRYPT; 2267 } 2268 cluster_size = qemu_opt_get_size_del(opts, BLOCK_OPT_CLUSTER_SIZE, 2269 DEFAULT_CLUSTER_SIZE); 2270 buf = qemu_opt_get_del(opts, BLOCK_OPT_PREALLOC); 2271 prealloc = qapi_enum_parse(PreallocMode_lookup, buf, | 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 --- 2255 unchanged lines hidden (view full) --- 2264 backing_fmt = qemu_opt_get_del(opts, BLOCK_OPT_BACKING_FMT); 2265 if (qemu_opt_get_bool_del(opts, BLOCK_OPT_ENCRYPT, false)) { 2266 flags |= BLOCK_FLAG_ENCRYPT; 2267 } 2268 cluster_size = qemu_opt_get_size_del(opts, BLOCK_OPT_CLUSTER_SIZE, 2269 DEFAULT_CLUSTER_SIZE); 2270 buf = qemu_opt_get_del(opts, BLOCK_OPT_PREALLOC); 2271 prealloc = qapi_enum_parse(PreallocMode_lookup, buf, |
2272 PREALLOC_MODE_MAX, PREALLOC_MODE_OFF, | 2272 PREALLOC_MODE__MAX, PREALLOC_MODE_OFF, |
2273 &local_err); 2274 if (local_err) { 2275 error_propagate(errp, local_err); 2276 ret = -EINVAL; 2277 goto finish; 2278 } 2279 g_free(buf); 2280 buf = qemu_opt_get_del(opts, BLOCK_OPT_COMPAT_LEVEL); --- 913 unchanged lines hidden --- | 2273 &local_err); 2274 if (local_err) { 2275 error_propagate(errp, local_err); 2276 ret = -EINVAL; 2277 goto finish; 2278 } 2279 g_free(buf); 2280 buf = qemu_opt_get_del(opts, BLOCK_OPT_COMPAT_LEVEL); --- 913 unchanged lines hidden --- |