Last active
April 23, 2024 09:13
Revisions
-
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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](http://www.makethenmakeinstall.com/2014/10/zfs-on-linux-with-luks-encrypted-disks/). -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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. -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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**: mkdir -p fuse-test/fusecompress-storage fuse-test/fusecompress fusecompress fuse-test/fusecompress-storage fuse-test/fusecompress -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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*: mkdir -p fuse-test/fusecompress-storage fuse-test/fusecompress fusecompress fuse-test/fusecompress-storage fuse-test/fusecompress -
Cosmin Stroe revised this gist
Sep 1, 2015 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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
-
Cosmin Stroe created this gist
Sep 1, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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