summaryrefslogtreecommitdiff
path: root/minix/servers/vfs/request.h
blob: 74f612bf9a1cde38a23b868ee208d6c70e9ee134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __VFS_REQUEST_H__
#define __VFS_REQUEST_H__

/* Low level request messages are built and sent by wrapper functions.
 * This file contains the request and response structures for accessing
 * those wrappers functions.
 */

#include <sys/types.h>

/* Structure for response that contains inode details */
typedef struct node_details {
  endpoint_t fs_e;
  ino_t inode_nr;
  mode_t fmode;
  off_t fsize;
  uid_t uid;
  gid_t gid;

  /* For char/block special files */
  dev_t dev;
} node_details_t;

/* Structure for a lookup response */
typedef struct lookup_res {
  endpoint_t fs_e;
  ino_t inode_nr;
  mode_t fmode;
  off_t fsize;
  uid_t uid;
  gid_t gid;
  /* For char/block special files */
  dev_t dev;

  /* Fields used for handling mount point and symbolic links */
  int char_processed;
  unsigned char symloop;
} lookup_res_t;


#endif