|
| ||||||||||||||||
Unionfs is suitable to use with NFS daemon nfsd. It uses a fake block device /dev/unionfs[0-255] with major number 231 and minor number from 0-255 . Unionfs have the following behavior,
Example A-1. Example Unionfs Mount
mount -t unionfs -o master=/master,slave=/slave /dev/unionfs1 /unionfs /master/a /master/b /master/c + /slave/a /slave/d /slave/e Unionfs -> /unionfs/a /unionfs/b /unionfs/c /unionfs/d /unionfs/e |
The master file system dir.
The slave file system dir.
The .unionfs control a run-time per directory behavior of Unionfs. The .unionfs file must reside in the master tree, and it will be read into memory in directory lookups, it will not refresh itself unless the directory cache is dropped. It contains the following sections and have the following meaning,
The [Options] section is for controlling options of this directory, you can specify no_slave option to make this directory not merge with slave sub directory. Example,
Currently we only support one option.You can specify a list of file name entries to be excluded from merging with its slave subdirectories. Each of the entry is separated by end of line character.
When the no_slave is on, the [Exclude] section has no meaning.