summaryrefslogtreecommitdiff
path: root/netfs.c
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2009-07-05 23:08:44 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-12-10 21:32:41 +0000
commitd711d1eb2ac42911690a107f80e7fb5df09a4782 (patch)
tree9e4dd8dbc7e61cafa96fed475766ae7219b3db00 /netfs.c
parentf7309c9bf8e75c829da8bb983b28284b9a119340 (diff)
Implement mountee startup.
* mount.c (mountee_node): New variable. (mountee_root): Likewise. (mountee_started): Likewise. (start_mountee): New function (based on node_set_translator in nsmux). (setup_unionmount): New function. * mount.h (mountee_root): New variable. (mountee_started): Likewise. (start_mountee): New function. (setup_unionmount): New function. * netfs.c (netfs_validate_stat): Start the mountee at the first invocation.
Diffstat (limited to 'netfs.c')
-rw-r--r--netfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/netfs.c b/netfs.c
index 954222f..00db6b8 100644
--- a/netfs.c
+++ b/netfs.c
@@ -195,6 +195,13 @@ netfs_validate_stat (struct node *np, struct iouser *cred)
}
else
{
+ if (!mountee_started)
+ {
+ err = setup_unionmount ();
+ if (err)
+ error (EXIT_FAILURE, err, "failed to set up the mountee");
+ }
+
_get_node_size (np, &np->nn_stat.st_size);
}