wok-6.x rev 18829

cloop: deduplicate support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 17 14:23:08 2016 +0100 (2016-01-17)
parents 8fe10eb4f215
children 30b3a3fb9ff0
files fusecloop/stuff/fusecloop.u linux-cloop/stuff/cloop.u linux64-cloop/stuff/cloop.u qemu/stuff/cloop.u
line diff
     1.1 --- a/fusecloop/stuff/fusecloop.u	Sun Jan 17 14:10:13 2016 +0100
     1.2 +++ b/fusecloop/stuff/fusecloop.u	Sun Jan 17 14:23:08 2016 +0100
     1.3 @@ -68,7 +68,7 @@
     1.4  +		for (i = 0, j = sizeof(struct cloop_head); i < n; i++) {
     1.5  +			offsets[i].offset = j;
     1.6  +			if (offsets[i].size & 0x80000000) {
     1.7 -+				unsigned long k = offset[i].size & 0x7FFFFFFF;
     1.8 ++				unsigned long k = offsets[i].size & 0x7FFFFFFF;
     1.9  +				offsets[i].offset = offsets[k].offset;
    1.10  +				offsets[i].size = offsets[k].size;
    1.11  +			}
     2.1 --- a/linux-cloop/stuff/cloop.u	Sun Jan 17 14:10:13 2016 +0100
     2.2 +++ b/linux-cloop/stuff/cloop.u	Sun Jan 17 14:23:08 2016 +0100
     2.3 @@ -68,7 +68,7 @@
     2.4  +		for (i = 0, j = sizeof(struct cloop_head); i < n; i++) {
     2.5  +			offsets[i].offset = j;
     2.6  +			if (offsets[i].size & 0x80000000) {
     2.7 -+				unsigned long k = offset[i].size & 0x7FFFFFFF;
     2.8 ++				unsigned long k = offsets[i].size & 0x7FFFFFFF;
     2.9  +				offsets[i].offset = offsets[k].offset;
    2.10  +				offsets[i].size = offsets[k].size;
    2.11  +			}
     3.1 --- a/linux64-cloop/stuff/cloop.u	Sun Jan 17 14:10:13 2016 +0100
     3.2 +++ b/linux64-cloop/stuff/cloop.u	Sun Jan 17 14:23:08 2016 +0100
     3.3 @@ -68,7 +68,7 @@
     3.4  +		for (i = 0, j = sizeof(struct cloop_head); i < n; i++) {
     3.5  +			offsets[i].offset = j;
     3.6  +			if (offsets[i].size & 0x80000000) {
     3.7 -+				unsigned long k = offset[i].size & 0x7FFFFFFF;
     3.8 ++				unsigned long k = offsets[i].size & 0x7FFFFFFF;
     3.9  +				offsets[i].offset = offsets[k].offset;
    3.10  +				offsets[i].size = offsets[k].size;
    3.11  +			}
     4.1 --- a/qemu/stuff/cloop.u	Sun Jan 17 14:10:13 2016 +0100
     4.2 +++ b/qemu/stuff/cloop.u	Sun Jan 17 14:23:08 2016 +0100
     4.3 @@ -73,7 +73,7 @@
     4.4  +		for (i = 0, j = 128 + 4 + 4; i < n; i++) {
     4.5  +			offsets[i].offset = j;
     4.6  +			if (offsets[i].size & 0x80000000) {
     4.7 -+				unsigned long k = offset[i].size & 0x7FFFFFFF;
     4.8 ++				unsigned long k = offsets[i].size & 0x7FFFFFFF;
     4.9  +				offsets[i].offset = offsets[k].offset;
    4.10  +				offsets[i].size = offsets[k].size;
    4.11  +			}