Changes in uspace/srv/fs/fat/fat_ops.c [19f857a:69a60c4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r19f857a 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
Note:
See TracChangeset
for help on using the changeset viewer.