add NFSv3 configuration.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@728 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
9c7ed22d04
commit
2139edd2eb
|
@ -90,6 +90,20 @@ void rt_init_thread_entry(void* parameter)
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
void rt_led_thread_entry(void* parameter)
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
/* Using symbol table */
|
/* Using symbol table */
|
||||||
#define FINSH_USING_SYMTAB
|
#define FINSH_USING_SYMTAB
|
||||||
#define FINSH_USING_DESCRIPTION
|
#define FINSH_USING_DESCRIPTION
|
||||||
|
#define FINSH_THREAD_STACK_SIZE 4096
|
||||||
|
|
||||||
/* SECTION: a runtime libc library */
|
/* SECTION: a runtime libc library */
|
||||||
/* a runtime libc library */
|
/* a runtime libc library */
|
||||||
|
@ -95,6 +96,9 @@
|
||||||
#define RT_DFS_ELM_MAX_LFN 32
|
#define RT_DFS_ELM_MAX_LFN 32
|
||||||
/* #define RT_USING_DFS_YAFFS2 */
|
/* #define RT_USING_DFS_YAFFS2 */
|
||||||
|
|
||||||
|
#define RT_USING_DFS_NFS
|
||||||
|
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
|
||||||
|
|
||||||
/* #define DFS_USING_WORKDIR */
|
/* #define DFS_USING_WORKDIR */
|
||||||
|
|
||||||
/* the max number of mounted filesystem */
|
/* the max number of mounted filesystem */
|
||||||
|
|
|
@ -7,6 +7,7 @@ RT_USING_FINSH = False
|
||||||
RT_USING_DFS = False
|
RT_USING_DFS = False
|
||||||
RT_USING_DFS_ELMFAT = False
|
RT_USING_DFS_ELMFAT = False
|
||||||
RT_USING_DFS_YAFFS2 = False
|
RT_USING_DFS_YAFFS2 = False
|
||||||
|
RT_USING_DFS_NFS = False
|
||||||
RT_USING_LWIP = False
|
RT_USING_LWIP = False
|
||||||
RT_USING_WEBSERVER = False
|
RT_USING_WEBSERVER = False
|
||||||
RT_USING_RTGUI = False
|
RT_USING_RTGUI = False
|
||||||
|
@ -38,6 +39,8 @@ if rtconfig_ns.has_key('RT_USING_DFS'):
|
||||||
RT_DFS_ELM_USE_LFN = True
|
RT_DFS_ELM_USE_LFN = True
|
||||||
if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
|
if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
|
||||||
RT_USING_DFS_YAFFS2 = True
|
RT_USING_DFS_YAFFS2 = True
|
||||||
|
if rtconfig_ns.has_key('RT_USING_DFS_NFS'):
|
||||||
|
RT_USING_DFS_NFS = True
|
||||||
|
|
||||||
# lwip options
|
# lwip options
|
||||||
if rtconfig_ns.has_key('RT_USING_LWIP'):
|
if rtconfig_ns.has_key('RT_USING_LWIP'):
|
||||||
|
|
Loading…
Reference in New Issue