summaryrefslogtreecommitdiffstats
path: root/fs/devfs-core.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-05-09 07:38:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-10 08:14:11 +0200
commit85dffaacfa3c7eedc8fc8ea12da27a19720e2483 (patch)
tree0120a9ef4d6f0897de6d5c563b592ce70addfb7f /fs/devfs-core.c
parentdee8d2e0619f58d55553c3da6292e630e452e355 (diff)
downloadbarebox-85dffaacfa3c7eedc8fc8ea12da27a19720e2483.tar.gz
barebox-85dffaacfa3c7eedc8fc8ea12da27a19720e2483.tar.xz
fs: Create automount entries for the default mount pathes
In barebox the default mount path for a cdev is /mnt/<cdevname> which can be mounted with "mount <cdevname>" 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 <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/devfs-core.c')
-rw-r--r--fs/devfs-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/devfs-core.c b/fs/devfs-core.c
index 382606f1cf..26fffbb6c2 100644
--- a/fs/devfs-core.c
+++ b/fs/devfs-core.c
@@ -332,6 +332,8 @@ static struct cdev *__devfs_add_partition(struct cdev *cdev,
devfs_create(new);
+ cdev_create_default_automount(new);
+
return new;
}