From 85dffaacfa3c7eedc8fc8ea12da27a19720e2483 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 9 May 2017 07:38:34 +0200 Subject: fs: Create automount entries for the default mount pathes In barebox the default mount path for a cdev is /mnt/ which can be mounted with "mount " without specifying a target path explicitly. Simplify this further by creating automount entries for the default mount pathes which makes a manual mount completely unnecessary. Signed-off-by: Sascha Hauer --- include/driver.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/driver.h b/include/driver.h index 52e06f7d62..b743ed8b77 100644 --- a/include/driver.h +++ b/include/driver.h @@ -490,6 +490,14 @@ struct cdev *devfs_add_partition(const char *devname, loff_t offset, loff_t size, unsigned int flags, const char *name); int devfs_del_partition(const char *name); +#ifdef CONFIG_FS_AUTOMOUNT +void cdev_create_default_automount(struct cdev *cdev); +#else +static inline void cdev_create_default_automount(struct cdev *cdev) +{ +} +#endif + #define DEVFS_PARTITION_APPEND 0 /** -- cgit v1.2.3