# HG changeset patch # User Pascal Bellard # Date 1416504647 -3600 # Node ID 1ef3f82b00955ba8a6ef8af979a71d26cabbee17 # Parent b6529b365b6f8c87727e7ec228604d6fb8b9bbe6 Add fuse-rofs diff -r b6529b365b6f -r 1ef3f82b0095 fuse-rofs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fuse-rofs/receipt Thu Nov 20 18:30:47 2014 +0100 @@ -0,0 +1,28 @@ +# SliTaz package receipt. + +PACKAGE="fuse-rofs" +HASH="ce809a5df82da363a80742e3969eace2f349fa29" +VERSION="${HASH:0:7}" +CATEGORY="system-tools" +SHORT_DESC="The Read-Only File System for FUSE." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://github.com/cognusion/fuse-rofs" +WGET_URL="$WEB_SITE/archive/$HASH.tar.gz" + +DEPENDS="fuse" +BUILD_DEPENDS="wget fuse-dev" + +# Rules to configure and make the package. +compile_rules() +{ + gcc -o rofs -Wall -ansi -W -std=c99 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -lfuse rofs.c +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/sbin + cp $src/rofs $fs/usr/sbin/mount.rofs +} diff -r b6529b365b6f -r 1ef3f82b0095 linux-cloop/stuff/cloop.u --- a/linux-cloop/stuff/cloop.u Thu Nov 20 06:13:48 2014 +0200 +++ b/linux-cloop/stuff/cloop.u Thu Nov 20 18:30:47 2014 +0100 @@ -225,7 +225,7 @@ if (!clo->offsets) { printk(KERN_ERR "%s: out of kernel mem for offsets\n", cloop_name); -@@ -521,19 +571,19 @@ +@@ -521,19 +571,22 @@ } num_readable = MIN(total_offsets - offsets_read, (clo->underlying_blksize - offset) @@ -247,12 +247,15 @@ } - printk(KERN_INFO "%s: %s: %u blocks, %u bytes/block, largest block is %lu bytes.\n", - cloop_name, filename, ntohl(clo->head.num_blocks), ++ i = ntohl(clo->head.block_size); ++ i += i/1000 + 12 + 4; /* max gzip block size */ ++ if (clo->largest_block > i) clo->largest_block = i; /* broken index ? */ + printk(KERN_INFO "%s: %s: %s, %u blocks, %u bytes/block, largest block is %lu bytes.\n", + cloop_name, filename, version, ntohl(clo->head.num_blocks), ntohl(clo->head.block_size), clo->largest_block); } /* Combo kmalloc used too large chunks (>130000). */ -@@ -565,16 +615,6 @@ +@@ -565,16 +618,6 @@ error=-ENOMEM; goto error_release_free_all; } zlib_inflateInit(&clo->zstream); @@ -269,7 +272,7 @@ { int i; for(i=0; ibuffered_blocknum[i] = -1; -@@ -653,7 +693,7 @@ +@@ -653,7 +696,7 @@ } } error_release_free: diff -r b6529b365b6f -r 1ef3f82b0095 linux64-cloop/stuff/cloop.u --- a/linux64-cloop/stuff/cloop.u Thu Nov 20 06:13:48 2014 +0200 +++ b/linux64-cloop/stuff/cloop.u Thu Nov 20 18:30:47 2014 +0100 @@ -225,7 +225,7 @@ if (!clo->offsets) { printk(KERN_ERR "%s: out of kernel mem for offsets\n", cloop_name); -@@ -521,19 +571,19 @@ +@@ -521,19 +571,22 @@ } num_readable = MIN(total_offsets - offsets_read, (clo->underlying_blksize - offset) @@ -247,12 +247,15 @@ } - printk(KERN_INFO "%s: %s: %u blocks, %u bytes/block, largest block is %lu bytes.\n", - cloop_name, filename, ntohl(clo->head.num_blocks), ++ i = ntohl(clo->head.block_size); ++ i += i/1000 + 12 + 4; /* max gzip block size */ ++ if (clo->largest_block > i) clo->largest_block = i; /* broken index ? */ + printk(KERN_INFO "%s: %s: %s, %u blocks, %u bytes/block, largest block is %lu bytes.\n", + cloop_name, filename, version, ntohl(clo->head.num_blocks), ntohl(clo->head.block_size), clo->largest_block); } /* Combo kmalloc used too large chunks (>130000). */ -@@ -565,16 +615,6 @@ +@@ -565,16 +618,6 @@ error=-ENOMEM; goto error_release_free_all; } zlib_inflateInit(&clo->zstream); @@ -269,7 +272,7 @@ { int i; for(i=0; ibuffered_blocknum[i] = -1; -@@ -653,7 +693,7 @@ +@@ -653,7 +696,7 @@ } } error_release_free: