file-win32.c (235e59cf03ed75d0ce96c97343194ed11c146231) file-win32.c (af175e85f92c870386ad74f466e29537b79611d3)
1/*
2 * Block driver for RAW files (win32)
3 *
4 * Copyright (c) 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

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

333 Error *local_err = NULL;
334 const char *filename;
335 bool use_aio;
336 int ret;
337
338 s->type = FTYPE_FILE;
339
340 opts = qemu_opts_create(&raw_runtime_opts, NULL, 0, &error_abort);
1/*
2 * Block driver for RAW files (win32)
3 *
4 * Copyright (c) 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

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

333 Error *local_err = NULL;
334 const char *filename;
335 bool use_aio;
336 int ret;
337
338 s->type = FTYPE_FILE;
339
340 opts = qemu_opts_create(&raw_runtime_opts, NULL, 0, &error_abort);
341 if (!qemu_opts_absorb_qdict(opts, options, &local_err)) {
342 error_propagate(errp, local_err);
341 if (!qemu_opts_absorb_qdict(opts, options, errp)) {
343 ret = -EINVAL;
344 goto fail;
345 }
346
347 if (qdict_get_try_bool(options, "locking", false)) {
348 error_setg(errp, "locking=on is not supported on Windows");
349 ret = -EINVAL;
350 goto fail;

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

733 char device_name[64];
734
735 Error *local_err = NULL;
736 const char *filename;
737 bool use_aio;
738
739 QemuOpts *opts = qemu_opts_create(&raw_runtime_opts, NULL, 0,
740 &error_abort);
342 ret = -EINVAL;
343 goto fail;
344 }
345
346 if (qdict_get_try_bool(options, "locking", false)) {
347 error_setg(errp, "locking=on is not supported on Windows");
348 ret = -EINVAL;
349 goto fail;

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

732 char device_name[64];
733
734 Error *local_err = NULL;
735 const char *filename;
736 bool use_aio;
737
738 QemuOpts *opts = qemu_opts_create(&raw_runtime_opts, NULL, 0,
739 &error_abort);
741 if (!qemu_opts_absorb_qdict(opts, options, &local_err)) {
742 error_propagate(errp, local_err);
740 if (!qemu_opts_absorb_qdict(opts, options, errp)) {
743 ret = -EINVAL;
744 goto done;
745 }
746
747 filename = qemu_opt_get(opts, "filename");
748
749 use_aio = get_aio_option(opts, flags, &local_err);
750 if (!local_err && use_aio) {

--- 82 unchanged lines hidden ---
741 ret = -EINVAL;
742 goto done;
743 }
744
745 filename = qemu_opt_get(opts, "filename");
746
747 use_aio = get_aio_option(opts, flags, &local_err);
748 if (!local_err && use_aio) {

--- 82 unchanged lines hidden ---