[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New cloop-src for the 2.6.22* kernel?



Hi Tapani,

I had some spare time today and tried the latest stable linux-2.6.22.5
source with the cloop-src package version 2.04-1+eb.1-7 from Etch. It
processed fine after applying the following patch to the cloop-source
tree.

################ BEGIN cloop.patch ################
diff -u modules/cloop.orig/compressed_loop.c modules/cloop/compressed_loop.c
--- modules/cloop.orig/compressed_loop.c	2006-07-28 18:28:35.000000000 +0200
+++ modules/cloop/compressed_loop.c	2007-08-25 18:31:36.000000000 +0200
@@ -379,7 +379,7 @@
         clo->underlying_blksize = block_size(inode->i_bdev);
     }
     else
-        clo->underlying_blksize = inode->i_blksize;
+        clo->underlying_blksize = (1 << inode->i_blkbits);
     DEBUGP("Underlying blocksize is %u\n", clo->underlying_blksize);
 
     bbuf = vmalloc(clo->underlying_blksize);
@@ -579,7 +579,7 @@
     if(clo->compressed_buffer) { vfree(clo->compressed_buffer); clo->compressed_buffer = NULL; }
     zlib_inflateEnd(&clo->zstream);
     if(clo->zstream.workspace) { vfree(clo->zstream.workspace); clo->zstream.workspace = NULL; }
-    invalidate_bdev(bdev, 0);
+    invalidate_bdev(bdev);
     set_capacity(clo->disk, 0);
     return 0;
 }
################ END cloop.patch ################

I experienced the same bearing, with the CPU waiting for I/O infinitely,
on mount, alas!

Best Regards, Fabian




Reply to: