dmg: Fixing wrong dmg block type value for block terminator.
PATCH 1/1 dmg: Fixing wrong dmg block type value for block terminator.
This is a trivial patch to fix a wrong value for block terminator. The old value was 0x7fffffff which is wrong. It was not affecting the code because QEMU dmg block is not handling block terminator right now. Neverthless, it should be fixed.
--- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/dmg.c +1 -1
@@ -54,7 +54,7 @@ enum {UDBZ ,ULFO ,UDCM =0x7ffffffe ,/* Comments */ - UDLE /* Last Entry */ + UDLE = 0xffffffff /* Last Entry */ };static int dmg_probe (const uint8_t *buf,int buf_size,const char *filename)
Signature · 1 line
2.19.1
Quoted 6 lines · Julio Faracco
This is a trivial patch to fix a wrong value for block terminator. The old value was
0x7fffffffwhich is wrong. It was not affecting the code because QEMU dmg block is not handling block terminator right now. Neverthless, it should be fixed.Signed-off-by Julio Faracco <[email protected]>
Quoted 18 lines
--- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/dmg.c +1
-1@@ -54,7 +54,7 @@ enum {UDBZ ,ULFO ,UDCM =0x7ffffffe ,/* Comments */ -UDLE /* Last Entry */ +UDLE =0xffffffff /* Last Entry */ }; static int dmg_probe(const uint8_t *buf, int buf_size, const char*filename)
Stefan Hajnoczi
AppliedQuoted 9 lines · Julio Faracco
This is a trivial patch to fix a wrong value for block terminator. The old value was
0x7fffffffwhich is wrong. It was not affecting the code because QEMU dmg block is not handling block terminator right now. Neverthless, it should be fixed.Signed-off-by Julio Faracco <[email protected]>--- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan