diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-30 17:40:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-05 08:27:40 +0200 |
commit | aa3a70a50b99d317e81ecebe9704e8174c5b45c4 (patch) | |
tree | 00cf872f3a0df2ac8982bbaa8b0fcd7ac2480a28 /fs | |
parent | 49c2e4ebe8f4b5f457201385f075fb80476a7977 (diff) | |
download | barebox-aa3a70a50b99d317e81ecebe9704e8174c5b45c4.tar.gz |
fs: export file system detection functionality
This will come in handy when using barebox as EFI loader, so give it a
more generic name and export it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220930154053.752237-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -756,7 +756,7 @@ int register_fs_driver(struct fs_driver_d *fsdrv) } EXPORT_SYMBOL(register_fs_driver); -static const char *detect_fs(const char *filename, const char *fsoptions) +const char *fs_detect(const char *filename, const char *fsoptions) { enum filetype type; struct driver_d *drv; @@ -2980,7 +2980,7 @@ int mount(const char *device, const char *fsname, const char *pathname, device, pathname, fsname, fsoptions); if (!fsname) - fsname = detect_fs(device, fsoptions); + fsname = fs_detect(device, fsoptions); if (!fsname) { ret = -ENOENT; |