diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-27 22:47:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-29 12:11:14 +0200 |
commit | ecb3aaa23b09c41f2ac8364f5ca72779467762e3 (patch) | |
tree | ab76b31d8736050aed1a150c5ec7525dd0836e2b /include/fs.h | |
parent | d4f5bb1e011ac653a167031554f0ac9e028e9e36 (diff) | |
download | barebox-ecb3aaa23b09c41f2ac8364f5ca72779467762e3.tar.gz barebox-ecb3aaa23b09c41f2ac8364f5ca72779467762e3.tar.xz |
fs: cleanup backingstore handling
All filesystem drivers which need a backingstore device do the same
ignoring of '/dev/' in the backingstore followed by a cdev_open. Add a
helper function for it and let the core handle the cdev. As a side
effect this makes sure that fsdev->cdev is also set when a device is
mounted without the leading '/dev/' which was previously ignored
by the mount code.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r-- | include/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 22c07467da..c6c0f0ef37 100644 --- a/include/fs.h +++ b/include/fs.h @@ -193,4 +193,6 @@ void automount_print(void); int unlink_recursive(const char *path, char **failedpath); +int fsdev_open_cdev(struct fs_device_d *fsdev); + #endif /* __FS_H */ |