Changeset 69a60c4 in mainline
- Timestamp:
- 2010-07-28T15:23:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7dfd339
- Parents:
- 571addd
- Location:
- uspace/srv/fs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r571addd r69a60c4 1564 1564 void fat_sync(ipc_callid_t rid, ipc_call_t *request) 1565 1565 { 1566 /* Dummy implementation */ 1567 ipc_answer_0(rid, EOK); 1566 dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request); 1567 fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request); 1568 1569 fs_node_t *fn; 1570 int rc = fat_node_get(&fn, dev_handle, index); 1571 if (rc != EOK) { 1572 ipc_answer_0(rid, rc); 1573 return; 1574 } 1575 if (!fn) { 1576 ipc_answer_0(rid, ENOENT); 1577 return; 1578 } 1579 1580 fat_node_t *nodep = FAT_NODE(fn); 1581 1582 nodep->dirty = true; 1583 rc = fat_node_sync(nodep); 1584 1585 fat_node_put(fn); 1586 ipc_answer_0(rid, rc); 1568 1587 } 1569 1588 -
uspace/srv/fs/tmpfs/tmpfs_ops.c
r571addd r69a60c4 736 736 void tmpfs_sync(ipc_callid_t rid, ipc_call_t *request) 737 737 { 738 /* Dummy implementation */ 738 /* 739 * TMPFS keeps its data structures always consistent, 740 * thus the sync operation is a no-op. 741 */ 739 742 ipc_answer_0(rid, EOK); 740 743 }
Note:
See TracChangeset
for help on using the changeset viewer.