yaffs-direct: Add reldir and reldev interfaces
authorCharles Manning <cdhmanning@gmail.com>
Tue, 25 Mar 2014 00:26:39 +0000 (13:26 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 25 Mar 2014 00:26:39 +0000 (13:26 +1300)
These interfaces allow far more flexibility in the way Yaffs Direct
is hooked up to an RTOS VFS.

The "normal" interface requires a fully, qualified path, which is
a pain to achieve in some RTOSs.

The new interfaces allow calls to be done with paths relative to a
directory or to a device. This tends to make some RTOS integration
cleaner.

Example
 yaffs_open("/mountpoint-name/dir/file",...);
now has two alternatives:
 yaffs_open_reldir(root_dir,"dir/file",...);
or
 yaffs_open_reldev(dev, "dir/file",...);

Signed-off-by: Charles Manning <cdhmanning@gmail.com>

No differences found