From 53bc92e1ca559a7081475a27163ad3cc5e88a294 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 5 Jun 2016 10:07:10 +0200 Subject: [PATCH] PhotoRec: recover qcow disk image based on version 3 --- src/file_cow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file_cow.c b/src/file_cow.c index c45069ff..b0de7cb7 100644 --- a/src/file_cow.c +++ b/src/file_cow.c @@ -122,6 +122,8 @@ static void register_header_check_cow(file_stat_t *file_stat) { static const unsigned char cow_header[8]= {'Q', 'F', 'I', 0xfb, 0x0, 0x0, 0x0, 0x1}; static const unsigned char cow_header2[8]= {'Q', 'F', 'I', 0xfb, 0x0, 0x0, 0x0, 0x2}; + static const unsigned char cow_header3[8]= {'Q', 'F', 'I', 0xfb, 0x0, 0x0, 0x0, 0x3}; register_header_check(0, cow_header,sizeof(cow_header), &header_check_qcow1, file_stat); register_header_check(0, cow_header2,sizeof(cow_header2), &header_check_qcow2, file_stat); + register_header_check(0, cow_header3,sizeof(cow_header3), &header_check_qcow2, file_stat); }