summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2016-03-10 08:42:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 13:34:45 +0200
commit38eae8b2ca2304356cfbadec9c99985e7cf81b2c (patch)
treebee448f4bac673a18bb816ec2e5c5e75e575b5ee /include
parent0a3795dd0ea3c950eae0309b3feafe9087e54f0e (diff)
downloadbarebox-38eae8b2ca2304356cfbadec9c99985e7cf81b2c.tar.gz
barebox-38eae8b2ca2304356cfbadec9c99985e7cf81b2c.tar.xz
fs: umount based on device path and mount path
umount on Linux can be used on a mount pathes and device pathes. This patch adds this functionality to barebox. Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 11f4535051..b9d1e6e09a 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -144,6 +144,7 @@ int readlink(const char *path, char *buf, size_t bufsiz);
int mount (const char *device, const char *fsname, const char *path,
const char *fsoptions);
int umount(const char *pathname);
+int umount_by_cdev(struct cdev *cdev);
/* not-so-standard functions */
int erase(int fd, loff_t count, loff_t offset);