wok-next rev 17365
Add fuse-rofs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 20 18:30:47 2014 +0100 (2014-11-20) |
parents | b6529b365b6f |
children | d06c0bbee2d8 |
files | fuse-rofs/receipt linux-cloop/stuff/cloop.u linux64-cloop/stuff/cloop.u |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fuse-rofs/receipt Thu Nov 20 18:30:47 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="fuse-rofs" 1.7 +HASH="ce809a5df82da363a80742e3969eace2f349fa29" 1.8 +VERSION="${HASH:0:7}" 1.9 +CATEGORY="system-tools" 1.10 +SHORT_DESC="The Read-Only File System for FUSE." 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +LICENSE="GPL2" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="https://github.com/cognusion/fuse-rofs" 1.15 +WGET_URL="$WEB_SITE/archive/$HASH.tar.gz" 1.16 + 1.17 +DEPENDS="fuse" 1.18 +BUILD_DEPENDS="wget fuse-dev" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + gcc -o rofs -Wall -ansi -W -std=c99 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -lfuse rofs.c 1.24 +} 1.25 + 1.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.27 +genpkg_rules() 1.28 +{ 1.29 + mkdir -p $fs/usr/sbin 1.30 + cp $src/rofs $fs/usr/sbin/mount.rofs 1.31 +}
2.1 --- a/linux-cloop/stuff/cloop.u Thu Nov 20 06:13:48 2014 +0200 2.2 +++ b/linux-cloop/stuff/cloop.u Thu Nov 20 18:30:47 2014 +0100 2.3 @@ -225,7 +225,7 @@ 2.4 if (!clo->offsets) 2.5 { 2.6 printk(KERN_ERR "%s: out of kernel mem for offsets\n", cloop_name); 2.7 -@@ -521,19 +571,19 @@ 2.8 +@@ -521,19 +571,22 @@ 2.9 } 2.10 num_readable = MIN(total_offsets - offsets_read, 2.11 (clo->underlying_blksize - offset) 2.12 @@ -247,12 +247,15 @@ 2.13 } 2.14 - printk(KERN_INFO "%s: %s: %u blocks, %u bytes/block, largest block is %lu bytes.\n", 2.15 - cloop_name, filename, ntohl(clo->head.num_blocks), 2.16 ++ i = ntohl(clo->head.block_size); 2.17 ++ i += i/1000 + 12 + 4; /* max gzip block size */ 2.18 ++ if (clo->largest_block > i) clo->largest_block = i; /* broken index ? */ 2.19 + printk(KERN_INFO "%s: %s: %s, %u blocks, %u bytes/block, largest block is %lu bytes.\n", 2.20 + cloop_name, filename, version, ntohl(clo->head.num_blocks), 2.21 ntohl(clo->head.block_size), clo->largest_block); 2.22 } 2.23 /* Combo kmalloc used too large chunks (>130000). */ 2.24 -@@ -565,16 +615,6 @@ 2.25 +@@ -565,16 +618,6 @@ 2.26 error=-ENOMEM; goto error_release_free_all; 2.27 } 2.28 zlib_inflateInit(&clo->zstream); 2.29 @@ -269,7 +272,7 @@ 2.30 { 2.31 int i; 2.32 for(i=0; i<BUFFERED_BLOCKS; i++) clo->buffered_blocknum[i] = -1; 2.33 -@@ -653,7 +693,7 @@ 2.34 +@@ -653,7 +696,7 @@ 2.35 } 2.36 } 2.37 error_release_free:
3.1 --- a/linux64-cloop/stuff/cloop.u Thu Nov 20 06:13:48 2014 +0200 3.2 +++ b/linux64-cloop/stuff/cloop.u Thu Nov 20 18:30:47 2014 +0100 3.3 @@ -225,7 +225,7 @@ 3.4 if (!clo->offsets) 3.5 { 3.6 printk(KERN_ERR "%s: out of kernel mem for offsets\n", cloop_name); 3.7 -@@ -521,19 +571,19 @@ 3.8 +@@ -521,19 +571,22 @@ 3.9 } 3.10 num_readable = MIN(total_offsets - offsets_read, 3.11 (clo->underlying_blksize - offset) 3.12 @@ -247,12 +247,15 @@ 3.13 } 3.14 - printk(KERN_INFO "%s: %s: %u blocks, %u bytes/block, largest block is %lu bytes.\n", 3.15 - cloop_name, filename, ntohl(clo->head.num_blocks), 3.16 ++ i = ntohl(clo->head.block_size); 3.17 ++ i += i/1000 + 12 + 4; /* max gzip block size */ 3.18 ++ if (clo->largest_block > i) clo->largest_block = i; /* broken index ? */ 3.19 + printk(KERN_INFO "%s: %s: %s, %u blocks, %u bytes/block, largest block is %lu bytes.\n", 3.20 + cloop_name, filename, version, ntohl(clo->head.num_blocks), 3.21 ntohl(clo->head.block_size), clo->largest_block); 3.22 } 3.23 /* Combo kmalloc used too large chunks (>130000). */ 3.24 -@@ -565,16 +615,6 @@ 3.25 +@@ -565,16 +618,6 @@ 3.26 error=-ENOMEM; goto error_release_free_all; 3.27 } 3.28 zlib_inflateInit(&clo->zstream); 3.29 @@ -269,7 +272,7 @@ 3.30 { 3.31 int i; 3.32 for(i=0; i<BUFFERED_BLOCKS; i++) clo->buffered_blocknum[i] = -1; 3.33 -@@ -653,7 +693,7 @@ 3.34 +@@ -653,7 +696,7 @@ 3.35 } 3.36 } 3.37 error_release_free: