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

Changeset 827d73f in mainline for uspace/srv/vfs/vfs.h


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/vfs/vfs.h

    r918e9910 r827d73f  
    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/**
     
    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
     
    177176    vfs_pair_t *, ...);
    178177extern int vfs_open_node_internal(vfs_lookup_res_t *);
     178extern int vfs_close_internal(vfs_file_t *);
    179179
    180180extern bool vfs_nodes_init(void);
    181181extern vfs_node_t *vfs_node_get(vfs_lookup_res_t *);
    182182extern void vfs_node_put(vfs_node_t *);
     183extern void vfs_node_forget(vfs_node_t *);
     184extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t);
     185
    183186
    184187#define MAX_OPEN_FILES  128
    185188
    186189extern bool vfs_files_init(void);
     190extern void vfs_files_done(void);
    187191extern vfs_file_t *vfs_file_get(int);
    188192extern int vfs_fd_assign(vfs_file_t *file, int fd);
     
    198202extern void vfs_register(ipc_callid_t, ipc_call_t *);
    199203extern void vfs_mount(ipc_callid_t, ipc_call_t *);
     204extern void vfs_unmount(ipc_callid_t, ipc_call_t *);
    200205extern void vfs_open(ipc_callid_t, ipc_call_t *);
    201206extern void vfs_open_node(ipc_callid_t, ipc_call_t *);
     
    208213extern void vfs_truncate(ipc_callid_t, ipc_call_t *);
    209214extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    210 extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    211215extern void vfs_stat(ipc_callid_t, ipc_call_t *);
    212216extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note: See TracChangeset for help on using the changeset viewer.