summaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-09-30 17:40:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-04 11:01:24 +0200
commit9719692439b21f828eb63d6e8d703ec34fbfebe2 (patch)
tree9388031911fcfa701ef5e3c1eed1184ae5263c57 /include/fs.h
parent13c7a12af0ab73adb5577adfd3d28731cd1b6190 (diff)
downloadbarebox-9719692439b21f828eb63d6e8d703ec34fbfebe2.tar.gz
fs: implement cdev_mount()
EFI loaders provide both block device and file system access to software running under it. For file system access, we will just want to get a mount if available and mount at a default location if not. Provide a helper that does just that. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220930154017.750867-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 894cae3e4c..9ea522dc2c 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -164,6 +164,7 @@ int fs_init_legacy(struct fs_device_d *fsdev);
int fsdev_open_cdev(struct fs_device_d *fsdev);
const char *cdev_get_mount_path(struct cdev *cdev);
const char *cdev_mount_default(struct cdev *cdev, const char *fsoptions);
+const char *cdev_mount(struct cdev *cdev);
void mount_all(void);
void fsdev_set_linux_rootarg(struct fs_device_d *fsdev, const char *str);