curl.c (5dc11192b23fbb09fab277d58ac3c42b9699a8b0) curl.c (87ea75d5e135c0527c6a9dbac4317913409f28c7)
1/*
2 * QEMU Block driver for CURL images
3 *
4 * Copyright (c) 2009 Alexander Graf <agraf@suse.de>
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

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

408 static int inited = 0;
409
410 if (flags & BDRV_O_RDWR) {
411 qerror_report(ERROR_CLASS_GENERIC_ERROR,
412 "curl block device does not support writes");
413 return -EROFS;
414 }
415
1/*
2 * QEMU Block driver for CURL images
3 *
4 * Copyright (c) 2009 Alexander Graf <agraf@suse.de>
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

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

408 static int inited = 0;
409
410 if (flags & BDRV_O_RDWR) {
411 qerror_report(ERROR_CLASS_GENERIC_ERROR,
412 "curl block device does not support writes");
413 return -EROFS;
414 }
415
416 opts = qemu_opts_create_nofail(&runtime_opts);
416 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
417 qemu_opts_absorb_qdict(opts, options, &local_err);
418 if (error_is_set(&local_err)) {
419 qerror_report_err(local_err);
420 error_free(local_err);
421 goto out_noclean;
422 }
423
424 s->readahead_size = qemu_opt_get_size(opts, "readahead", READ_AHEAD_SIZE);

--- 259 unchanged lines hidden ---
417 qemu_opts_absorb_qdict(opts, options, &local_err);
418 if (error_is_set(&local_err)) {
419 qerror_report_err(local_err);
420 error_free(local_err);
421 goto out_noclean;
422 }
423
424 s->readahead_size = qemu_opt_get_size(opts, "readahead", READ_AHEAD_SIZE);

--- 259 unchanged lines hidden ---