-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lots of work to bring fh goodness into the API
- Loading branch information
Apocalypse
committed
Jan 25, 2009
1 parent
e998d4d
commit 9eb45b7
Showing
14 changed files
with
533 additions
and
193 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/perl | ||
use strict; use warnings; | ||
|
||
# uncomment this to have debugging | ||
sub POE::Component::Fuse::DEBUG { 1 } | ||
|
||
# loopback to our home directory! | ||
use Filesys::Virtual::Async::Plain; | ||
my $vfs = Filesys::Virtual::Async::Plain->new( | ||
'cwd' => '/', | ||
'root' => $ENV{'PWD'}, | ||
'home_path' => '/', | ||
); | ||
|
||
# load FUSE goodness | ||
use POE::Component::Fuse; | ||
POE::Component::Fuse->spawn( | ||
'vfilesys' => $vfs, | ||
'umount' => 1, | ||
); | ||
|
||
print "Check us out at the default place: /tmp/poefuse\n"; | ||
print "In it you should see the contents of the directory you ran this script from.\n"; | ||
print "LOOPBACK MAGIC! :)\n"; | ||
|
||
# fire up POE | ||
POE::Kernel->run(); | ||
exit; |
Oops, something went wrong.