wok rev 10938
fusecloop: large file support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 28 11:53:02 2011 +0200 (2011-08-28) |
parents | f462b780444d |
children | 7bae2701caba |
files | fusecloop/stuff/fusecloop.u |
line diff
1.1 --- a/fusecloop/stuff/fusecloop.u Sun Aug 28 10:58:22 2011 +0200 1.2 +++ b/fusecloop/stuff/fusecloop.u Sun Aug 28 11:53:02 2011 +0200 1.3 @@ -399,3 +399,14 @@ 1.4 + write(STDOUT_FILENO, &tail, sizeof(tail)); 1.5 + return 0; 1.6 +} 1.7 +--- fusecloop.c 1.8 ++++ fusecloop.c 1.9 +@@ -65,7 +65,7 @@ 1.10 + 1.11 + memcpy(stbuf,&stb,sizeof stb); 1.12 + stbuf->st_mode&=~0222; 1.13 +- stbuf->st_size = cd.blocksize * cd.numblocks; 1.14 ++ stbuf->st_size = (loff_t) cd.blocksize * cd.numblocks; 1.15 + /* 1.16 + stbuf->st_mode = S_IFREG | 0444; 1.17 + stbuf->st_nlink = 1;