wok-current rev 17169
linux-cloop: 4Gb+ support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 23 11:33:52 2014 +0200 (2014-09-23) |
parents | ade6b9da6804 |
children | 94680e860098 |
files | fusecloop/stuff/fusecloop.u linux-cloop/stuff/cloop.u |
line diff
1.1 --- a/fusecloop/stuff/fusecloop.u Tue Sep 23 10:35:20 2014 +0200 1.2 +++ b/fusecloop/stuff/fusecloop.u Tue Sep 23 11:33:52 2014 +0200 1.3 @@ -60,10 +60,10 @@ 1.4 + return (char *) "32BE v0.68"; 1.5 + } 1.6 + else { /* V3.0 */ 1.7 -+ int i; 1.8 ++ unsigned long i; 1.9 + loff_t j; 1.10 + 1.11 -+ for (i = n; i-- > 0; ) 1.12 ++ for (i = n; i-- != 0; ) 1.13 + offsets[i].size = ntohl(ofs32[i]); 1.14 + for (i = 0, j = sizeof(struct cloop_head); i < n; i++) { 1.15 + offsets[i].offset = j;
2.1 --- a/linux-cloop/stuff/cloop.u Tue Sep 23 10:35:20 2014 +0200 2.2 +++ b/linux-cloop/stuff/cloop.u Tue Sep 23 11:33:52 2014 +0200 2.3 @@ -60,10 +60,10 @@ 2.4 + return (char *) "32BE v0.68"; 2.5 + } 2.6 + else { /* V3.0 */ 2.7 -+ int i; 2.8 ++ unsigned long i; 2.9 + loff_t j; 2.10 + 2.11 -+ for (i = n; i-- > 0; ) 2.12 ++ for (i = n; i-- != 0; ) 2.13 + offsets[i].size = ntohl(ofs32[i]); 2.14 + for (i = 0, j = sizeof(struct cloop_head); i < n; i++) { 2.15 + offsets[i].offset = j;