Changes in uspace/srv/vfs/vfs.h [f29a3a2:991f645] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    rf29a3a2 r991f645  
    4242#include <ipc/vfs.h>
    4343
    44 // FIXME: according to CONFIG_DEBUG
    45 // #define dprintf(...)  printf(__VA_ARGS__)
    46 
    47 #define dprintf(...)
     44#ifndef dprintf
     45        #define dprintf(...)
     46#endif
    4847
    4948/**
     
    6362#define VFS_PAIR \
    6463        fs_handle_t fs_handle; \
    65         dev_handle_t dev_handle;
     64        devmap_handle_t devmap_handle;
    6665
    6766/**
     
    6968 * doesn't contain any state. For a stateful structure, see vfs_node_t.
    7069 *
    71  * @note        fs_handle, dev_handle and index are meant to be returned in one
     70 * @note        fs_handle, devmap_handle and index are meant to be returned in one
    7271 *              IPC reply.
    7372 */
     
    9392        vfs_triplet_t triplet;
    9493        vfs_node_type_t type;
    95         size_t size;
    96         unsigned lnkcnt;
     94        aoff64_t size;
     95        unsigned int lnkcnt;
    9796} vfs_lookup_res_t;
    9897
     
    117116        vfs_node_type_t type;   /**< Partial info about the node type. */
    118117
    119         size_t size;            /**< Cached size if the node is a file. */
     118        aoff64_t size;          /**< Cached size if the node is a file. */
    120119
    121120        /**
     
    141140        bool append;
    142141
    143         /** Current position in the file. */
    144         off_t pos;
     142        /** Current absolute position in the file. */
     143        aoff64_t pos;
    145144} vfs_file_t;
    146145
     
    170169
    171170extern int vfs_grab_phone(fs_handle_t);
    172 extern void vfs_release_phone(int);
     171extern void vfs_release_phone(fs_handle_t, int);
    173172
    174173extern fs_handle_t fs_name_to_handle(char *, bool);
     
    183182extern void vfs_node_put(vfs_node_t *);
    184183extern void vfs_node_forget(vfs_node_t *);
    185 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t);
     184extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);
    186185
    187186
     
    214213extern void vfs_truncate(ipc_callid_t, ipc_call_t *);
    215214extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    216 extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    217215extern void vfs_stat(ipc_callid_t, ipc_call_t *);
    218216extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note: See TracChangeset for help on using the changeset viewer.