Extend apps/examples/unionfs so it is includes a root offset on one of the unified file sysems

This commit is contained in:
Gregory Nutt 2015-06-21 12:21:54 -06:00
parent d265c5d111
commit b2c2e134b1
7 changed files with 9 additions and 5 deletions

View File

@ -1873,6 +1873,9 @@ examples/unionfs
CONFIG_EXAMPLES_UNIONFS_RAMDEVNO_B - ROMFS file system 2 RAM disk device number
CONFIG_EXAMPLES_UNIONFS_SECTORSIZE - ROM disk sector size.
See the README.txt file at nuttx/configs/sim/README.txt for a walk-through of
the output of this text.
examples/usbserial
^^^^^^^^^^^^^^^^^^

View File

@ -1,2 +0,0 @@
This is a file in directory adir on file system 1

View File

@ -1,2 +0,0 @@
This is a file in directory adir/asubdir on file system 1

View File

@ -0,0 +1,2 @@
This is a file in directory offset/adir on file system 1

View File

@ -0,0 +1,2 @@
This is a file in directory offset/adir/asubdir on file system 1

View File

@ -0,0 +1 @@
This is a file in the offset/ directory on file system 1

View File

@ -188,7 +188,7 @@ int unionfs_main(int argc, char *argv[])
/* Now create and mount the union file system */
ret = unionfs_mount(CONFIG_EXAMPLES_UNIONFS_TMPA, NULL,
CONFIG_EXAMPLES_UNIONFS_TMPB, NULL,
CONFIG_EXAMPLES_UNIONFS_TMPB, "offset",
CONFIG_EXAMPLES_UNIONFS_MOUNTPT);
if (ret < 0)
{