From 4db02de530ceb22a814ab6f53eda77c40de03fe7 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 5 Jul 2009 15:26:58 +0300 Subject: Add the mountee to the list of merged filesystems. * 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. --- ulfs.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ulfs.h') 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. */ -- cgit v1.2.3