diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 18:22:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-18 15:03:26 +0100 |
commit | b5e5b06d8bf87908a5c4bec87e751ee2681cad4f (patch) | |
tree | aed701ab0ed8be47f39c24c880dc14086fe9e097 /include/fs.h | |
parent | b55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d (diff) | |
download | barebox-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.h | 4 |
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 */ |