block.c (a77beb0fcbf419aa1e8e32b7df3609664f74c928) block.c (7ad2757feffd13b8000826ae3df2a3bc929d688d)
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

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

1846 if (ret < 0) {
1847 goto close_and_fail;
1848 }
1849 }
1850
1851 bdrv_refresh_filename(bs);
1852
1853 /* Check if any unknown options were used */
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

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

1846 if (ret < 0) {
1847 goto close_and_fail;
1848 }
1849 }
1850
1851 bdrv_refresh_filename(bs);
1852
1853 /* Check if any unknown options were used */
1854 if (options && (qdict_size(options) != 0)) {
1854 if (qdict_size(options) != 0) {
1855 const QDictEntry *entry = qdict_first(options);
1856 if (flags & BDRV_O_PROTOCOL) {
1857 error_setg(errp, "Block protocol '%s' doesn't support the option "
1858 "'%s'", drv->format_name, entry->key);
1859 } else {
1860 error_setg(errp,
1861 "Block format '%s' does not support the option '%s'",
1862 drv->format_name, entry->key);

--- 2233 unchanged lines hidden ---
1855 const QDictEntry *entry = qdict_first(options);
1856 if (flags & BDRV_O_PROTOCOL) {
1857 error_setg(errp, "Block protocol '%s' doesn't support the option "
1858 "'%s'", drv->format_name, entry->key);
1859 } else {
1860 error_setg(errp,
1861 "Block format '%s' does not support the option '%s'",
1862 drv->format_name, entry->key);

--- 2233 unchanged lines hidden ---