summaryrefslogtreecommitdiff
path: root/ulfs.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2009-07-05 15:26:58 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-12-10 21:32:45 +0000
commit4db02de530ceb22a814ab6f53eda77c40de03fe7 (patch)
tree759b4287eaa92b2d63c4895f5c7209b184bb3ce4 /ulfs.h
parentd711d1eb2ac42911690a107f80e7fb5df09a4782 (diff)
Add the mountee to the list of merged filesystems.unionmount
* mount.c (start_mountee): Add the mountee's filesystem to the list of merged filesystems. * node.c (node_init_root): Take into consideration the fact that an empty string refers to the mountee root. * ulfs.c (ulfs_check): Likewise. (ulfs_register): Don't check whether "" is a valid directory.
Diffstat (limited to 'ulfs.h')
-rw-r--r--ulfs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ulfs.h b/ulfs.h
index 532e3c7..46eb7ff 100644
--- a/ulfs.h
+++ b/ulfs.h
@@ -22,7 +22,9 @@
#ifndef INCLUDED_ULFS_H
#define INCLUDED_ULFS_H
-/* The structure for each registered underlying filesystem. */
+/* The structure for each registered underlying filesystem. A null
+ path refers to the underlying filesystem; a path equal to an empty
+ string refers to the filesystem of the mountee. */
typedef struct ulfs
{
char *path;
@@ -49,7 +51,9 @@ extern unsigned int ulfs_num;
/* The lock protecting the ulfs data structures. */
extern struct mutex ulfs_lock;
-/* Register a new underlying filesystem. */
+/* Register a new underlying filesystem. A null path refers to the
+ underlying filesystem; a path equal to an empty string refers to
+ the filesystem of the mountee. */
error_t ulfs_register (char *path, int flags, int priority);
/* Unregister an underlying filesystem. */