2006-10-25 15:40:36 +02:00
|
|
|
|
|
|
|
/* 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;
|
2007-08-07 14:52:47 +02:00
|
|
|
uid_t uid;
|
|
|
|
gid_t gid;
|
|
|
|
|
|
|
|
/* For faster access */
|
2006-10-25 15:40:36 +02:00
|
|
|
unsigned short inode_index;
|
2007-08-07 14:52:47 +02:00
|
|
|
|
2006-10-25 15:40:36 +02:00
|
|
|
/* 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;
|
2007-01-05 17:36:55 +01:00
|
|
|
uid_t uid;
|
|
|
|
gid_t gid;
|
2006-10-25 15:40:36 +02:00
|
|
|
/* 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;
|
|
|
|
|
|
|
|
|
|
|
|
/* Structure for REQ_ request */
|