Commit Graph

8 Commits

Author SHA1 Message Date
Barry Tulchinsky 5e61be5668 rebased 2013-12-20 03:34:05 -05:00
Alan Kligman 8510e4a712 add support for supernode, which contains metadata about the file system itself (currently only the location of the root node); updated refactoring-test 2013-12-14 14:42:00 -05:00
Abir Viqar 5ceff20b12 make find_node symbolic link aware
This adds a new constant SYMLOOP_MAX, which corresponds to the POSIX
variable of the number of symbolic links that may be followed. A new
error Eloop was added to signal when SYMLOOP_MAX is exceeded.
SYMLOOP_MAX has been arbitrarily set to 10 while on linux it is set
to 40 and the POSIX minimum is 8.

find_node when encountering a symbolic link anywhere in the given path
will attempt to follow it.

Note that SYMLOOP_MAX is only the limit of symbolic links to
follow per symbolic link. There is currently no attempt to limit
the total number of symbolic links followed when resolving a path.

This adds tests for path resolution of symbolic links as well.
2013-11-25 14:26:46 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 2a8705ed0b Add fs.readFile, fs.writeFile with tests 2013-11-08 15:33:44 -05:00
Alan Kligman c3c9751ff4 Stat implementation, updated tests. 2013-07-12 11:11:05 -04:00
Alan Kligman 2d195ff6d6 WIP 2013-05-31 15:03:18 -04:00
Alan Kligman de463a36c1 Support for link() and unlink(). 2012-11-14 11:19:04 -05:00
Alan Kligman 83ff221736 Refactoring. 2012-11-08 00:12:41 -05:00