summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-19 18:22:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-03-18 15:03:26 +0100
commitb5e5b06d8bf87908a5c4bec87e751ee2681cad4f (patch)
treeaed701ab0ed8be47f39c24c880dc14086fe9e097 /include/fs.h
parentb55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d (diff)
downloadbarebox-b5e5b06d8bf87908a5c4bec87e751ee2681cad4f.tar.gz
barebox-b5e5b06d8bf87908a5c4bec87e751ee2681cad4f.tar.xz
Add automount support
This patch adds an automount command which makes it possible to execute a script when a certain directory is first accessed. It's the commands responsibility to make this directory available (bringing devices up and mounting it). This results in automount support which makes sure that from the shell every file can be accessed without having to care for device bringup. Bringing up devices may be expensive (USB, dhcp). The automount support makes it easy for the environment to bringup devices when they are actually needed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 7815da592c..d82f02626a 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -160,4 +160,8 @@ char *normalise_path(const char *path);
/* Register a new filesystem driver */
int register_fs_driver(struct fs_driver_d *fsdrv);
+void automount_remove(const char *_path);
+int automount_add(const char *path, const char *cmd);
+void automount_print(void);
+
#endif /* __FS_H */