Skip to content

Commit 294ff61

Browse files
committed
[DFS] Support 9PFS
What is 9PFS (https://en.wikipedia.org/wiki/9P_(protocol)): 9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system. rt-thread could share filesystem in VM mode with 9pfs such as QEMU... Signed-off-by: GuEe-GUI <2991707448@qq.com>
1 parent 2fb53c8 commit 294ff61

File tree

5 files changed

+1398
-1
lines changed

5 files changed

+1398
-1
lines changed

components/dfs/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ endif
163163
default y
164164

165165
if RT_USING_DFS_V1
166+
config RT_USING_DFS_9PFS
167+
bool "Using Plan 9 remote filesystem"
168+
select RT_USING_ADT_BITMAP
169+
depends on RT_USING_MEMHEAP
170+
default n
171+
166172
config RT_USING_DFS_ISO9660
167173
bool "Using ISO9660 filesystem"
168174
depends on RT_USING_MEMHEAP
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RT-Thread building script for component
2+
3+
from building import *
4+
5+
cwd = GetCurrentDir()
6+
src = Glob('*.c')
7+
CPPPATH = [cwd]
8+
9+
group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_DFS_9PFS'], CPPPATH = CPPPATH)
10+
11+
Return('group')

0 commit comments

Comments
 (0)