Changeset f2ec8c8 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2008-03-11T20:33:53Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
923c39e
Parents:
8ad8e49
Message:

Introduce fs_handle_t, dev_handle_t and fs_index_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    r8ad8e49 rf2ec8c8  
    5454
    5555/* Forward declarations of static functions. */
    56 static int vfs_truncate_internal(int, int, unsigned long, size_t);
     56static int vfs_truncate_internal(fs_handle_t, dev_handle_t, fs_index_t, size_t);
    5757
    5858/**
     
    6969};
    7070
    71 static int lookup_root(int fs_handle, int dev_handle, vfs_lookup_res_t *result)
     71static int
     72lookup_root(fs_handle_t fs_handle, dev_handle_t dev_handle,
     73    vfs_lookup_res_t *result)
    7274{
    7375        vfs_pair_t altroot = {
     
    8183void vfs_mount(ipc_callid_t rid, ipc_call_t *request)
    8284{
    83         int dev_handle;
     85        dev_handle_t dev_handle;
    8486        vfs_node_t *mp_node = NULL;
    8587
     
    8991         * in the request.
    9092         */
    91         dev_handle = IPC_GET_ARG1(*request);
     93        dev_handle = (dev_handle_t)IPC_GET_ARG1(*request);
    9294
    9395        /*
     
    128130         * This will also give us its file system handle.
    129131         */
    130         int fs_handle = fs_name_to_handle(fs_name, true);
     132        fs_handle_t fs_handle = fs_name_to_handle(fs_name, true);
    131133        if (!fs_handle) {
    132134                ipc_answer_0(rid, ENOENT);
     
    572574}
    573575
    574 int vfs_truncate_internal(int fs_handle, int dev_handle, unsigned long index,
    575     size_t size)
     576int
     577vfs_truncate_internal(fs_handle_t fs_handle, dev_handle_t dev_handle,
     578    fs_index_t index, size_t size)
    576579{
    577580        ipcarg_t rc;
Note: See TracChangeset for help on using the changeset viewer.