Skip to content

Instantly share code, notes, and snippets.

@cstroe
Last active April 23, 2024 09:13

Revisions

  1. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fuse.md
    Original file line number Diff line number Diff line change
    @@ -62,4 +62,4 @@ Turn on compression:

    zpool set compression=on mypool

    ZFS encryption is not supported in the Linux version of ZFS. You can work around it by encrypting the volume with LUKS and creating a ZFS pool on top of the encrypted volume.
    ZFS encryption is not supported in the Linux version of ZFS. You can work around it by [encrypting the volume with LUKS and creating a ZFS pool on top of the encrypted volume](http://www.makethenmakeinstall.com/2014/10/zfs-on-linux-with-luks-encrypted-disks/).
  2. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion fuse.md
    Original file line number Diff line number Diff line change
    @@ -50,4 +50,16 @@ Maybe the [C++ version of FUSEcompress](https://github.com/tex/fusecompress/) do

    ## ZFS-FUSE on Ubuntu

    sudo apt-get install zfs-fuse
    sudo apt-get install zfs-fuse

    Assuming the disk you want to run ZFS on is `/dev/sdb`, you can do the following:

    WARNING: THIS WILL ERASE `/dev/sdb`!

    zpool create mypool /dev/sdb

    Turn on compression:

    zpool set compression=on mypool

    ZFS encryption is not supported in the Linux version of ZFS. You can work around it by encrypting the volume with LUKS and creating a ZFS pool on top of the encrypted volume.
  3. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions fuse.md
    Original file line number Diff line number Diff line change
    @@ -48,3 +48,6 @@ Notice that the `test.txt` in `fusecompress-storage` is not compressed. But thi

    Maybe the [C++ version of FUSEcompress](https://github.com/tex/fusecompress/) doesn't have this problem? Who knows.

    ## ZFS-FUSE on Ubuntu

    sudo apt-get install zfs-fuse
  4. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion fuse.md
    Original file line number Diff line number Diff line change
    @@ -46,4 +46,5 @@ Notice that the `test.txt` in `fusecompress-storage` is not compressed. But thi
    cp fuse-test/fusecompress/test.txt fuse-test/fusecompress/copy.txt
    ls -la fuse-test/fusecompress-storage/copy.txt fuse-test/fusecompress/copy.txt


    Maybe the [C++ version of FUSEcompress](https://github.com/tex/fusecompress/) doesn't have this problem? Who knows.

  5. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fuse.md
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ To mount a compressed filesystem, use the `fusecompress` command:
    cp test.txt fusecompress
    ls -la ./fusecompress/test.txt ./fusecompress-storage/test.txt

    However, I found that this file system *doesn't work with unix pipes*:
    However, I found that this file system **doesn't work with unix pipes**:

    mkdir -p fuse-test/fusecompress-storage fuse-test/fusecompress
    fusecompress fuse-test/fusecompress-storage fuse-test/fusecompress
  6. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fuse.md
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ To mount a compressed filesystem, use the `fusecompress` command:
    cp test.txt fusecompress
    ls -la ./fusecompress/test.txt ./fusecompress-storage/test.txt

    However, I found that this file system doesn't work well with unix pipes:
    However, I found that this file system *doesn't work with unix pipes*:

    mkdir -p fuse-test/fusecompress-storage fuse-test/fusecompress
    fusecompress fuse-test/fusecompress-storage fuse-test/fusecompress
  7. Cosmin Stroe revised this gist Sep 1, 2015. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions fuse.md
    Original file line number Diff line number Diff line change
    @@ -33,3 +33,17 @@ To mount a compressed filesystem, use the `fusecompress` command:
    bash -c 'for i in $(seq 1 100); do echo "this is a test" >> test.txt; done'
    cp test.txt fusecompress
    ls -la ./fusecompress/test.txt ./fusecompress-storage/test.txt

    However, I found that this file system doesn't work well with unix pipes:

    mkdir -p fuse-test/fusecompress-storage fuse-test/fusecompress
    fusecompress fuse-test/fusecompress-storage fuse-test/fusecompress
    bash -c 'for i in $(seq 1 100); do echo "this is a test" >> fuse-test/fusecompress/test.txt; done'
    ls -la fuse-test/fusecompress-storage/test.txt fuse-test/fusecompress/test.txt

    Notice that the `test.txt` in `fusecompress-storage` is not compressed. But this will trigger a compression:

    cp fuse-test/fusecompress/test.txt fuse-test/fusecompress/copy.txt
    ls -la fuse-test/fusecompress-storage/copy.txt fuse-test/fusecompress/copy.txt


  8. Cosmin Stroe created this gist Sep 1, 2015.
    35 changes: 35 additions & 0 deletions fuse.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    # FUSE on Ubuntu

    It seems that Fuse is compiled into the Ubuntu kernel by default.

    To test you can use `sshfs`:

    sudo apt-get install sshfs
    mkdir tmp
    sshfs localhost:/tmp ./tmp
    ls tmp

    To compile a fuse filesystem that doesn't have a package:

    sudo apt-get install libfuse-dev

    and then follow the build instructions for your filesystem.

    ## FUSEcompress 0.9.x

    FUSEcompress implements transparent file compression as a FUSE filesystem.

    sudo apt-get install libfuse-dev
    svn checkout http://fusecompress.googlecode.com/svn/trunk/ fusecompress-read-only
    cd fusecompress-read-only
    ./autogen
    ./configure
    sudo ./make install

    To mount a compressed filesystem, use the `fusecompress` command:

    mkdir fusecompress-storage fusecompress
    fusecompress -c gz ./fusecompress-storage ./fusecompress
    bash -c 'for i in $(seq 1 100); do echo "this is a test" >> test.txt; done'
    cp test.txt fusecompress
    ls -la ./fusecompress/test.txt ./fusecompress-storage/test.txt