OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block/vhdx: Support vhdx image only with 512 bytes logical sector size
[qmiga/qemu.git]
/
block
/
vhdx.c
diff --git
a/block/vhdx.c
b/block/vhdx.c
index
791eb90
..
356ec4c
100644
(file)
--- a/
block/vhdx.c
+++ b/
block/vhdx.c
@@
-816,9
+816,9
@@
static int vhdx_parse_metadata(BlockDriverState *bs, BDRVVHDXState *s)
goto exit;
}
- /*
only 2 supported sector sizes
*/
- if (s->logical_sector_size != 512
&& s->logical_sector_size != 4096
) {
- ret = -E
INVAL
;
+ /*
Currently we only support 512
*/
+ if (s->logical_sector_size != 512) {
+ ret = -E
NOTSUP
;
goto exit;
}