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)
commit5521e3e34aa8ba4e9579b6d5ca2dd5e0a0946088
treea41035e5f4ad5094f224dfe1d6e226d46cc47720
parentaaae578baf773ae9d41415cf7eaec457f6690e57
yaffs-direct: Add reldir and reldev interfaces

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>
direct/test-framework/basic-tests/dtest.c
direct/yaffscfg.h
direct/yaffsfs.c
direct/yaffsfs.h
yaffs_guts.c
yaffs_guts.h