Rev 2863 | Rev 3087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2863 | Rev 2958 | ||
---|---|---|---|
Line 391... | Line 391... | ||
391 | free(dentry->data); |
391 | free(dentry->data); |
392 | free(dentry); |
392 | free(dentry); |
393 | return EOK; |
393 | return EOK; |
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 | void tmpfs_lookup(ipc_callid_t rid, ipc_call_t *request) |
411 | void tmpfs_lookup(ipc_callid_t rid, ipc_call_t *request) |
397 | { |
412 | { |
398 | /* Initialize TMPFS. */ |
413 | /* Initialize TMPFS. */ |
399 | if (!root && !tmpfs_init()) { |
414 | if (!root && !tmpfs_init()) { |
400 | ipc_answer_0(rid, ENOMEM); |
415 | ipc_answer_0(rid, ENOMEM); |