diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-17 15:28:15 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-05 03:22:14 +0800 |
commit | 1483f45879c6676eebc3cd4298393aec2af105e6 (patch) | |
tree | 66f55fe95bff8ede38aada8dc366271a967561f0 /fs | |
parent | c3defd050428c14e956f56810b80cf7a1343f962 (diff) | |
download | barebox-1483f45879c6676eebc3cd4298393aec2af105e6.tar.gz barebox-1483f45879c6676eebc3cd4298393aec2af105e6.tar.xz |
fs: introduce get_mounted_path to get the path where a file is mounted
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -243,6 +243,15 @@ static struct fs_device_d *get_fsdevice_by_path(const char *path) return fs_dev_root; } +char *get_mounted_path(const char *path) +{ + struct fs_device_d *fdev; + + fdev = get_fsdevice_by_path(path); + + return fdev->path; +} + static FILE files[MAX_FILES]; static FILE *get_file(void) |