summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-17 12:57:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-18 09:01:01 +0200
commite9db2079a55162821e4566efdef5b3d3b5028e88 (patch)
treec0da76c6ff2ca98f63d64d8943410bd02ef7da28 /include/fs.h
parentbc31d85c6e23d724664e76bcfc3b2eda778012a3 (diff)
downloadbarebox-e9db2079a55162821e4566efdef5b3d3b5028e88.tar.gz
barebox-e9db2079a55162821e4566efdef5b3d3b5028e88.tar.xz
fs: Add device parameter for Linux root= option
When registering a filesystem device add a device parameter suitable for the Linux root= option to boot from exactly this filesystem. Currently the fs layer sets this parameter to the root=PARTUUID= mechanism if a partuuid is available. Other filesystems like NFS and UBIFS which do not have a PARTUUID can overwrite this. 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 f95464de6a..ee7e48b0f9 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -100,6 +100,7 @@ struct fs_device_d {
struct device_d *parent_device;
struct list_head list;
char *options;
+ char *linux_rootarg;
};
#define drv_to_fs_driver(d) container_of(d, struct fs_driver_d, drv)
@@ -189,4 +190,7 @@ const char *cdev_get_mount_path(struct cdev *cdev);
const char *cdev_mount_default(struct cdev *cdev, const char *fsoptions);
void mount_all(void);
+void fsdev_set_linux_rootarg(struct fs_device_d *fsdev, const char *str);
+char *path_get_linux_rootarg(const char *path);
+
#endif /* __FS_H */