RE: 'cd' command with filesystem
Lorne Smith <Lorne.Smith-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I just tested the cd command with the NetworkFileSystem example (App. Note 709) and it works fine. Check your driver code for the following functions: public boolean exists(String fileName) public boolean isDirectory(String fileName) public boolean canRead(String fileName, byte uid) Each will be called with an empty string as the fileName parameter. If any of these return false, you will not be able to complete the cd command. This gives the driver a chance to grant or deny access to mount point as needed. --Lorne > -----Original Message----- > From: tini-admin-6tN4nzCoH/[email protected] > [mailto:tini-admin-6tN4nzCoH/[email protected]]On Behalf Of > Shawn Silverman > Sent: Sunday, February 15, 2004 6:29 PM > To: tini-6tN4nzCoH/[email protected] > Subject: [TINI]'cd' command with filesystem > > > Hello. I've written my own filesystem, and I cannot how to > figure out > how to 'cd' to the mounted directory. I mounted to "mnt" and > I see it > with 'ls' and 'ls -l'. I can sucessfully examine files with 'ls mnt' > and 'ls mnt/suff', for example, but the shell won't let me 'cd mnt' > because it says 'mnt does not exist'. > > I have all my files set to return r-xr-x as the permissions, so all > users can access them. > > Are there issues related to Slush and custom filesystems? I've > recompiled Slush with my own main class that first mounts the > filesystem, and then call's Slush's main. That's my setup. > Everything > works except 'cd mnt' and 'ls -l mnt/stuff', etc. > > Thanks, > -Shawn > > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/[email protected] > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini