Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 827d73f in mainline for uspace/srv/fs/devfs/devfs_ops.c


Ignore:
Timestamp:
2010-02-12T14:09:22Z (12 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master
Children:
a70bda4
Parents:
918e9910 (diff), e70edd1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged the actual head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/devfs/devfs_ops.c

    r918e9910 r827d73f  
    3737
    3838#include <ipc/ipc.h>
     39#include <macros.h>
    3940#include <bool.h>
    4041#include <errno.h>
     
    337338}
    338339
    339 static size_t devfs_size_get(fs_node_t *fn)
     340static aoff64_t devfs_size_get(fs_node_t *fn)
    340341{
    341342        return 0;
     
    419420       
    420421        /* Accept the mount options */
    421         ipcarg_t retval = async_data_string_receive(&opts, 0);
     422        ipcarg_t retval = async_data_write_accept((void **) &opts, true, 0, 0,
     423            0, NULL);
    422424        if (retval != EOK) {
    423425                ipc_answer_0(rid, retval);
     
    434436}
    435437
     438void devfs_unmounted(ipc_callid_t rid, ipc_call_t *request)
     439{
     440        ipc_answer_0(rid, ENOTSUP);
     441}
     442
     443void devfs_unmount(ipc_callid_t rid, ipc_call_t *request)
     444{
     445        libfs_unmount(&devfs_libfs_ops, rid, request);
     446}
     447
    436448void devfs_lookup(ipc_callid_t rid, ipc_call_t *request)
    437449{
     
    452464{
    453465        fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request);
    454         off_t pos = (off_t) IPC_GET_ARG3(*request);
     466        aoff64_t pos =
     467            (aoff64_t) MERGE_LOUP32(IPC_GET_ARG3(*request), IPC_GET_ARG4(*request));
    455468       
    456469        if (index == 0) {
     
    586599{
    587600        fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request);
    588         off_t pos = (off_t) IPC_GET_ARG3(*request);
    589        
    590601        if (index == 0) {
    591602                ipc_answer_0(rid, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.