Subversion Repositories HelenOS

Rev

Rev 2925 | Rev 3425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2925 Rev 3424
Line 38... Line 38...
38
#include <futex.h>
38
#include <futex.h>
39
#include <rwlock.h>
39
#include <rwlock.h>
40
#include <sys/types.h>
40
#include <sys/types.h>
41
#include <bool.h>
41
#include <bool.h>
42
 
42
 
-
 
43
// FIXME: according to CONFIG_DEBUG
43
#define dprintf(...)    printf(__VA_ARGS__)
44
// #define dprintf(...) printf(__VA_ARGS__)
-
 
45
 
-
 
46
#define dprintf(...)
44
 
47
 
45
#define VFS_FIRST   IPC_FIRST_USER_METHOD
48
#define VFS_FIRST   IPC_FIRST_USER_METHOD
46
 
49
 
47
#define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)   
50
#define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)   
48
 
51
 
Line 60... Line 63...
60
    VFS_LAST_CMN,   /* keep this the last member of this enum */
63
    VFS_LAST_CMN,   /* keep this the last member of this enum */
61
} vfs_request_cmn_t;
64
} vfs_request_cmn_t;
62
 
65
 
63
typedef enum {
66
typedef enum {
64
    VFS_LOOKUP = VFS_LAST_CMN,
67
    VFS_LOOKUP = VFS_LAST_CMN,
-
 
68
    VFS_MOUNTED,
65
    VFS_DESTROY,
69
    VFS_DESTROY,
66
    VFS_LAST_CLNT,  /* keep this the last member of this enum */
70
    VFS_LAST_CLNT,  /* keep this the last member of this enum */
67
} vfs_request_clnt_t;
71
} vfs_request_clnt_t;
68
 
72
 
69
typedef enum {
73
typedef enum {
Line 239... Line 243...
239
 
243
 
240
extern futex_t nodes_futex;
244
extern futex_t nodes_futex;
241
 
245
 
242
extern link_t fs_head;      /**< List of registered file systems. */
246
extern link_t fs_head;      /**< List of registered file systems. */
243
 
247
 
244
extern vfs_triplet_t rootfs;    /**< Root node of the root file system. */
248
extern vfs_pair_t rootfs;   /**< Root file system. */
245
 
249
 
246
#define MAX_PATH_LEN        (64 * 1024)
250
#define MAX_PATH_LEN        (64 * 1024)
247
 
251
 
248
#define PLB_SIZE        (2 * MAX_PATH_LEN)
252
#define PLB_SIZE        (2 * MAX_PATH_LEN)
249
 
253