提交 2139edd2 编写于 作者: B bernard.xiong@gmail.com

add NFSv3 configuration.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@728 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 9c7ed22d
......@@ -90,6 +90,20 @@ void rt_init_thread_entry(void* parameter)
}
#endif
/* NFSv3 Initialization */
#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
{
extern void nfs_init(void);
nfs_init();
if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0)
{
rt_kprintf("NFSv3 File System initialized!\n");
}
else
rt_kprintf("NFSv3 File System initialzation failed!\n");
}
#endif
}
void rt_led_thread_entry(void* parameter)
......
......@@ -76,6 +76,7 @@
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
#define FINSH_THREAD_STACK_SIZE 4096
/* SECTION: a runtime libc library */
/* a runtime libc library */
......@@ -95,6 +96,9 @@
#define RT_DFS_ELM_MAX_LFN 32
/* #define RT_USING_DFS_YAFFS2 */
#define RT_USING_DFS_NFS
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
/* #define DFS_USING_WORKDIR */
/* the max number of mounted filesystem */
......
......@@ -7,6 +7,7 @@ RT_USING_FINSH = False
RT_USING_DFS = False
RT_USING_DFS_ELMFAT = False
RT_USING_DFS_YAFFS2 = False
RT_USING_DFS_NFS = False
RT_USING_LWIP = False
RT_USING_WEBSERVER = False
RT_USING_RTGUI = False
......@@ -38,6 +39,8 @@ if rtconfig_ns.has_key('RT_USING_DFS'):
RT_DFS_ELM_USE_LFN = True
if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
RT_USING_DFS_YAFFS2 = True
if rtconfig_ns.has_key('RT_USING_DFS_NFS'):
RT_USING_DFS_NFS = True
# lwip options
if rtconfig_ns.has_key('RT_USING_LWIP'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册