Changeset 6f60727 in mainline


Ignore:
Timestamp:
2011-08-02T20:23:55Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
52a79081
Parents:
d8634a79
Message:

Implement exfat_sync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_ops.c

    rd8634a79 r6f60727  
    10831083}
    10841084
     1085void exfat_sync(ipc_callid_t rid, ipc_call_t *request)
     1086{
     1087        devmap_handle_t devmap_handle = (devmap_handle_t) IPC_GET_ARG1(*request);
     1088        fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request);
     1089
     1090        fs_node_t *fn;
     1091        int rc = exfat_node_get(&fn, devmap_handle, index);
     1092        if (rc != EOK) {
     1093                async_answer_0(rid, rc);
     1094                return;
     1095        }
     1096        if (!fn) {
     1097                async_answer_0(rid, ENOENT);
     1098                return;
     1099        }
     1100
     1101        exfat_node_t *nodep = EXFAT_NODE(fn);
     1102
     1103        nodep->dirty = true;
     1104        rc = exfat_node_sync(nodep);
     1105
     1106        exfat_node_put(fn);
     1107        async_answer_0(rid, rc);
     1108}
     1109
    10851110/**
    10861111 * @}
Note: See TracChangeset for help on using the changeset viewer.