Rev 2710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2710 | Rev 2731 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | 53 | ||
54 | vfs_info_t tmpfs_vfs_info = { |
54 | vfs_info_t tmpfs_vfs_info = { |
55 | .name = "tmpfs", |
55 | .name = "tmpfs", |
56 | .ops = { |
56 | .ops = { |
57 | [IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] = VFS_OP_DEFINED, |
57 | [IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] = VFS_OP_DEFINED, |
58 | [IPC_METHOD_TO_VFS_OP(VFS_OPEN)] = VFS_OP_DEFINED, |
- | |
59 | [IPC_METHOD_TO_VFS_OP(VFS_CLOSE)] = VFS_OP_DEFINED, |
- | |
60 | [IPC_METHOD_TO_VFS_OP(VFS_READ)] = VFS_OP_DEFINED, |
58 | [IPC_METHOD_TO_VFS_OP(VFS_READ)] = VFS_OP_DEFINED, |
61 | [IPC_METHOD_TO_VFS_OP(VFS_WRITE)] = VFS_OP_DEFINED, |
59 | [IPC_METHOD_TO_VFS_OP(VFS_WRITE)] = VFS_OP_DEFINED, |
62 | [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_NULL, |
60 | [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_DEFINED, |
63 | [IPC_METHOD_TO_VFS_OP(VFS_RENAME)] = VFS_OP_NULL, |
- | |
64 | [IPC_METHOD_TO_VFS_OP(VFS_OPENDIR)] = VFS_OP_NULL, |
- | |
65 | [IPC_METHOD_TO_VFS_OP(VFS_READDIR)] = VFS_OP_NULL, |
- | |
66 | [IPC_METHOD_TO_VFS_OP(VFS_CLOSEDIR)] = VFS_OP_NULL, |
- | |
67 | [IPC_METHOD_TO_VFS_OP(VFS_UNLINK)] = VFS_OP_NULL, |
- | |
68 | [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_NULL, |
61 | [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_NULL, |
69 | [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL, |
62 | [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL, |
- | 63 | [IPC_METHOD_TO_VFS_OP(VFS_FREE)] = VFS_OP_DEFINED, |
|
70 | } |
64 | } |
71 | }; |
65 | }; |
72 | 66 | ||
73 | fs_reg_t tmpfs_reg; |
67 | fs_reg_t tmpfs_reg; |
74 | 68 | ||
Line 116... | Line 110... | ||
116 | tmpfs_read(callid, &call); |
110 | tmpfs_read(callid, &call); |
117 | break; |
111 | break; |
118 | case VFS_WRITE: |
112 | case VFS_WRITE: |
119 | tmpfs_write(callid, &call); |
113 | tmpfs_write(callid, &call); |
120 | break; |
114 | break; |
- | 115 | case VFS_TRUNCATE: |
|
- | 116 | tmpfs_truncate(callid, &call); |
|
- | 117 | break; |
|
- | 118 | case VFS_FREE: |
|
- | 119 | tmpfs_free(callid, &call); |
|
- | 120 | break; |
|
121 | default: |
121 | default: |
122 | ipc_answer_0(callid, ENOTSUP); |
122 | ipc_answer_0(callid, ENOTSUP); |
123 | break; |
123 | break; |
124 | } |
124 | } |
125 | } |
125 | } |