Changeset 64b67c3 in mainline for uspace/srv/fs/tmpfs
- Timestamp:
- 2008-05-18T21:58:54Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92f9baca
- Parents:
- ce7311fc
- Location:
- uspace/srv/fs/tmpfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs.c
rce7311fc r64b67c3 59 59 [IPC_METHOD_TO_VFS_OP(VFS_WRITE)] = VFS_OP_DEFINED, 60 60 [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_DEFINED, 61 [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_ NULL,61 [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_DEFINED, 62 62 [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL, 63 63 [IPC_METHOD_TO_VFS_OP(VFS_DESTROY)] = VFS_OP_DEFINED, … … 104 104 callid = async_get_call(&call); 105 105 switch (IPC_GET_METHOD(call)) { 106 case VFS_MOUNT: 107 tmpfs_mount(callid, &call); 108 break; 106 109 case VFS_LOOKUP: 107 110 tmpfs_lookup(callid, &call); -
uspace/srv/fs/tmpfs/tmpfs.h
rce7311fc r64b67c3 61 61 extern fs_reg_t tmpfs_reg; 62 62 63 extern void tmpfs_mount(ipc_callid_t, ipc_call_t *); 63 64 extern void tmpfs_lookup(ipc_callid_t, ipc_call_t *); 64 65 extern void tmpfs_read(ipc_callid_t, ipc_call_t *); -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rce7311fc r64b67c3 394 394 } 395 395 396 void tmpfs_mount(ipc_callid_t rid, ipc_call_t *request) 397 { 398 dev_handle_t mr_dev_handle = (dev_handle_t)IPC_GET_ARG1(*request); 399 fs_index_t mr_index = (fs_index_t)IPC_GET_ARG2(*request); 400 fs_handle_t mp_fs_handle = (fs_handle_t)IPC_GET_ARG3(*request); 401 dev_handle_t mp_dev_handle = (dev_handle_t)IPC_GET_ARG4(*request); 402 fs_index_t mp_index = (fs_index_t)IPC_GET_ARG5(*request); 403 if ((mr_index == root->index) && 404 (mp_fs_handle == tmpfs_reg.fs_handle) && 405 (mp_index == mr_index)) 406 ipc_answer_0(rid, EOK); 407 else 408 ipc_answer_0(rid, ENOTSUP); 409 } 410 396 411 void tmpfs_lookup(ipc_callid_t rid, ipc_call_t *request) 397 412 {
Note:
See TracChangeset
for help on using the changeset viewer.