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


Ignore:
File:
1 edited

Legend:

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

    r991f645 rf29a3a2  
    4242#include <ipc/vfs.h>
    4343
    44 #ifndef dprintf
    45         #define dprintf(...)
    46 #endif
     44// FIXME: according to CONFIG_DEBUG
     45// #define dprintf(...)  printf(__VA_ARGS__)
     46
     47#define dprintf(...)
    4748
    4849/**
     
    6263#define VFS_PAIR \
    6364        fs_handle_t fs_handle; \
    64         devmap_handle_t devmap_handle;
     65        dev_handle_t dev_handle;
    6566
    6667/**
     
    6869 * doesn't contain any state. For a stateful structure, see vfs_node_t.
    6970 *
    70  * @note        fs_handle, devmap_handle and index are meant to be returned in one
     71 * @note        fs_handle, dev_handle and index are meant to be returned in one
    7172 *              IPC reply.
    7273 */
     
    9293        vfs_triplet_t triplet;
    9394        vfs_node_type_t type;
    94         aoff64_t size;
    95         unsigned int lnkcnt;
     95        size_t size;
     96        unsigned lnkcnt;
    9697} vfs_lookup_res_t;
    9798
     
    116117        vfs_node_type_t type;   /**< Partial info about the node type. */
    117118
    118         aoff64_t size;          /**< Cached size if the node is a file. */
     119        size_t size;            /**< Cached size if the node is a file. */
    119120
    120121        /**
     
    140141        bool append;
    141142
    142         /** Current absolute position in the file. */
    143         aoff64_t pos;
     143        /** Current position in the file. */
     144        off_t pos;
    144145} vfs_file_t;
    145146
     
    169170
    170171extern int vfs_grab_phone(fs_handle_t);
    171 extern void vfs_release_phone(fs_handle_t, int);
     172extern void vfs_release_phone(int);
    172173
    173174extern fs_handle_t fs_name_to_handle(char *, bool);
     
    182183extern void vfs_node_put(vfs_node_t *);
    183184extern void vfs_node_forget(vfs_node_t *);
    184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);
     185extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t);
    185186
    186187
     
    213214extern void vfs_truncate(ipc_callid_t, ipc_call_t *);
    214215extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
     216extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    215217extern void vfs_stat(ipc_callid_t, ipc_call_t *);
    216218extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note: See TracChangeset for help on using the changeset viewer.