summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-12 19:28:27 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-04 09:08:39 +0200
commita1b1aec6afa625451f531e0b870c8206a3841f69 (patch)
tree0e55a01d0de3e0cfd9fa07dcaee23cf28795db0e /include
parent7039368327be40b1fc91a4af055f7f71851af1af (diff)
downloadbarebox-a1b1aec6afa625451f531e0b870c8206a3841f69.tar.gz
barebox-a1b1aec6afa625451f531e0b870c8206a3841f69.tar.xz
fs/mount: add autodetection type support
if NULL is pass as type mount will try to autodetect the filesystem type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index c0b9f71fbd..22470e6379 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -2,6 +2,7 @@
#define __FS_H
#include <driver.h>
+#include <filetype.h>
#define PATH_MAX 1024 /* include/linux/limits.h */
@@ -72,6 +73,8 @@ struct fs_driver_d {
struct driver_d drv;
+ enum filetype type;
+
unsigned long flags;
};
@@ -93,6 +96,8 @@ struct fs_device_d {
struct list_head list;
};
+#define drv_to_fs_driver(d) container_of(d, struct fs_driver_d, drv)
+
/*
* standard posix file functions
*/