summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-01-01 13:37:21 +0000
committer[email protected] <[email protected]>2012-01-01 13:37:21 +0000
commitbeaf51ff8226f6f2f6d7a598cae7dd929d4afcaa (patch)
tree5fa833fa0c3d483db601d190b13b56925a9a405f /components/dfs/include
parent76e81a9977245e4bc7919688ef37442fc6cfc97b (diff)
add full path options (DFS_FS_FLAG_FULLPATH) to the file system.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1904 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs_fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/include/dfs_fs.h b/components/dfs/include/dfs_fs.h
index 2108d07c82..90a5b50d69 100644
--- a/components/dfs/include/dfs_fs.h
+++ b/components/dfs/include/dfs_fs.h
@@ -17,6 +17,9 @@
#include <dfs_def.h>
+#define DFS_FS_FLAG_DEFAULT 0x00 /* default flag */
+#define DFS_FS_FLAG_FULLPATH 0x01 /* set full path to underlaying file system */
+
/* Pre-declaration */
struct dfs_filesystem;
struct dfs_fd;
@@ -25,6 +28,7 @@ struct dfs_fd;
struct dfs_filesystem_operation
{
char *name;
+ rt_uint32_t flags; /* flags for file system operations */
/* mount and unmount file system */
int (*mount) (struct dfs_filesystem *fs, unsigned long rwflag, const void *data);