Cloop

Cloop

The compressed loopback device or cloop is a module for the Linux kernel. It adds support for transparently decompressed, read-only block devices. It is not a compressed file system in itself.

It was originally written for the Levanta Bootable Business Card by Rusty Russell, but is now maintained by Klaus Knopper, the author of Knoppix. cloop is mostly used as a convenient way to compress conventional file systems onto Live CDs.

A compression ratio of about 2.5:1 is common for software. The Knoppix cloop image, for example, is 700MB compressed and around 1.8GB uncompressed.

Design

cloop images contain:
* A shell script (with mount commands for the image)
* A header with the number of blocks and the uncompressed block size
* A seek index with compressed and uncompressed block sizes in pairs
* zlib-compressed data blocks, packed end-to-end

The data blocks are compressed separately; this makes it possible to seek to individual blocks without having to decompress the entire image from the start, but at the cost of slightly reducing the compression ratio. Live CD images typically use a block size of 256k as a compromise between decompression speed and space-efficiency.

Apple uses a similar file format in the compressed variant of its DMG disk images.

Limitations

* create_compressed_fs, the utility which creates cloop images, requires that the entire compressed image must fit in memory.
* The design of the cloop driver requires that compressed blocks be read whole from disk. This makes cloop access very slow when there are many small scattered reads, which can happen if the system is low on memory or when a large program with many shared libraries is starting up.

See also

* Cramfs
* zisofs
* SquashFS
* e2compr

External links

*cloop [http://debian-knoppix.alioth.debian.org/sources/ sources and patches for cloop] against the mainline Linux kernels. Note: versions 0.xx are for kernel 2.2; 1.xx are for kernel 2.4; 2.xx are for kernel 2.4 and 2.6.
* [http://www.knoppix.net/wiki/Cloop cloop at Knoppix Linux Wiki] (installation instructions are here)
*Slides from a LinuxTag [http://www.knopper.net/knoppix-info/cloop-chlt4-screen.pdf presentation] by Klaus Knopper on the implementation of cloop (in German).


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • cloop — Original author(s) Rusty Russell Developer(s) Klaus Knopper Stable release 2.637 1 / January 12, 2011; 9 months ago (2011 01 12) …   Wikipedia

  • cloop — (compressed loopback device) ist ein Modul für den Linux Kernel. Es ist eine Art Erweiterung des Loopback devices, das Unterstützung für transparent entkomprimierte Blockgeräte schafft. Es ist jedoch kein komprimiertes Dateisystem, sondern… …   Deutsch Wikipedia

  • Cloop — (compressed loopback device) ist ein Modul für den Linux Kernel. Es ist eine Art Erweiterung des Loopback devices, das Unterstützung für transparent entkomprimierte Blockgeräte schafft. Es ist jedoch kein komprimiertes Dateisystem, sondern… …   Deutsch Wikipedia

  • Cloop — Cloop, n. [An onomatop[oe]ia.] The sound made when a cork is forcibly drawn from a bottle. The cloop of a cork wrenched from a bottle. Thackeray. [1913 Webster] …   The Collaborative International Dictionary of English

  • Cloop — В данной статье или разделе имеется список источников или внешних ссылок, но источники отдельных утверждений остаются неясными из за отсутствия сносок …   Википедия

  • cloop — I. ˈklüp noun ( s) Etymology: imitative : the sound made when a cork is forcibly drawn from a bottle II. intransitive verb : to make a cloop …   Useful english dictionary

  • cloop — a distinctive sucking sound made by fish such as carp (Cyprinus carpio) at the surface when feeding …   Dictionary of ichthyology

  • Damn Small Linux — Not to be confused with DSLinux, a different Linux distribution for the Nintendo DS handheld game console. Damn Small Linux Damn Small Linux 4.4.10 …   Wikipedia

  • Qcow — is a type of disk image that can be used with the QEMU emulator, the other types being vvfat, vpc, bochs, dmg, cloop, vmdk, cow, and raw, depending on the OS. The qcow image grows as data is added, and supports AES encryption and transparent… …   Wikipedia

  • Loop subdivision surface — In computer graphics, Loop subdivision surface is a subdivision scheme developed by Charles Loop in 1987 for triangular meshes. External links * Charles Loop: Smooth Subdivision Surfaces Based on Triangles , M.S. Mathematics thesis , University… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”