summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authorbernard <[email protected]>2013-07-22 07:46:10 +0800
committerbernard <[email protected]>2013-07-22 07:46:10 +0800
commitb96b35613f2cdc8118f083a3e2795788915319d7 (patch)
tree4318798c8331e2b65b27ae9f1949df3a31ffce4f /components/dfs/include
parentadc678dabbcccd1f17cc1392882934ed5791a2b8 (diff)
add mount table
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs_fs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/dfs/include/dfs_fs.h b/components/dfs/include/dfs_fs.h
index e8f42f6631..3fa999c344 100644
--- a/components/dfs/include/dfs_fs.h
+++ b/components/dfs/include/dfs_fs.h
@@ -82,6 +82,16 @@ struct dfs_partition
rt_sem_t lock;
};
+/* mount table */
+struct dfs_mount_tbl
+{
+ const char *device_name;
+ const char *path;
+ const char *filesystemtype;
+ unsigned long rwflag;
+ const void *data;
+};
+
int dfs_register(const struct dfs_filesystem_operation *ops);
struct dfs_filesystem *dfs_filesystem_lookup(const char *path);
rt_err_t dfs_filesystem_get_partition(struct dfs_partition *part,
@@ -98,6 +108,7 @@ int dfs_unmount(const char *specialfile);
/* extern variable */
extern const struct dfs_filesystem_operation *filesystem_operation_table[];
extern struct dfs_filesystem filesystem_table[];
+extern const struct dfs_mount_tbl mount_table[];
extern char working_directory[];