Connect Peter-file-system to linux or mac

After spent 3 days to play the FUSE and macFUSE, i finally connected Peter-file-system (https://code.google.com/p/pfsbuilder) to my mac/linux machine.

Connect PFS to real FS
Connect PFS to real FS

It is quite simple and straightforward, I write a FUSE program that create a JVM and load my PFS stub (writhed in Java), every FUSE function calls will route to the stub and manipulates the PFS image. Here is the diagram:

How FUSE and PFS work
How FUSE and PFS work

The PFSBuilder can do these things:
1) compress/decompress a PFS image file from a directory
2) FUSE stub https://code.google.com/p/pfsbuilder/source/browse/#svn%2Ftrunk%2Fpfs-fuse

PFS fs spec is here https://pfsbuilder.googlecode.com/files/PFS2005_Spec1.pdf . I made PFS in 2005, it is a very simple FS and doesn’t have much feature. I made it because I want to know how the FS work and I did insert PFS to my hobby kernel

My hobby kernel
My hobby kernel

Don’t ask me what are the advantages of PFS, the only one advantage it has is : it has no advantage.
不要問我PFS的好處是什麼,它的好處就是沒有好處

Leave a Reply

Your email address will not be published. Required fields are marked *