|
From: | Dan Muresan |
Subject: | Re: [Chicken-users] a file system using Chicken |
Date: | Sun, 10 Jun 2007 07:59:20 +0300 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 |
Hi Matt, Glad to hear it finally worked.
Remaining problem: all the files are owned by root with group root and some are not world readable.
Unreadable directories are so by design. I've just put up a note on the duggfs homepage.
address@hidden:/tmp/duggfs$ ls -l total 0 drwxrwxrwx 2 root root 0 1969-12-31 17:00 config drwxrwxrwx 2 root root 0 1969-12-31 17:00 stories d--x--x--x 2 root root 0 1969-12-31 17:00 users address@hidden:/tmp/duggfs$ cd users/ address@hidden:/tmp/duggfs/users$ ls ls: .: Permission deniedaddress@hidden:/tmp/duggfs/users$I'm not sure where to go from here.
Well, go to the duggfs homepage and use the example commands listed there. Start your exploration from stories/topics/.
Basically, users/ contains a potentially infinite number of entries and thus it is unreadable. On the other hand, if you know a user's name you can read his directory users/digg_name. You can also get to users by following symlinks from within story directories.
interesting. If you feel inspired a "hello world" level example would be appreciated by those to whom your code is a bit beyond :-)
You really just need to replace duggfs.scm with your own FS code. It shouldn't be too difficult. Begin with function "duggfs-start!" and the variable "*duggfs-op-handlers*". Feel free to ask questions as necessary.
Cheers, Dan
[Prev in Thread] | Current Thread | [Next in Thread] |