1*433d6423SLionel Sambuc #ifndef __VFS_REQUEST_H__ 2*433d6423SLionel Sambuc #define __VFS_REQUEST_H__ 3*433d6423SLionel Sambuc 4*433d6423SLionel Sambuc /* Low level request messages are built and sent by wrapper functions. 5*433d6423SLionel Sambuc * This file contains the request and response structures for accessing 6*433d6423SLionel Sambuc * those wrappers functions. 7*433d6423SLionel Sambuc */ 8*433d6423SLionel Sambuc 9*433d6423SLionel Sambuc #include <sys/types.h> 10*433d6423SLionel Sambuc 11*433d6423SLionel Sambuc /* Structure for response that contains inode details */ 12*433d6423SLionel Sambuc typedef struct node_details { 13*433d6423SLionel Sambuc endpoint_t fs_e; 14*433d6423SLionel Sambuc ino_t inode_nr; 15*433d6423SLionel Sambuc mode_t fmode; 16*433d6423SLionel Sambuc off_t fsize; 17*433d6423SLionel Sambuc uid_t uid; 18*433d6423SLionel Sambuc gid_t gid; 19*433d6423SLionel Sambuc 20*433d6423SLionel Sambuc /* For char/block special files */ 21*433d6423SLionel Sambuc dev_t dev; 22*433d6423SLionel Sambuc } node_details_t; 23*433d6423SLionel Sambuc 24*433d6423SLionel Sambuc /* Structure for a lookup response */ 25*433d6423SLionel Sambuc typedef struct lookup_res { 26*433d6423SLionel Sambuc endpoint_t fs_e; 27*433d6423SLionel Sambuc ino_t inode_nr; 28*433d6423SLionel Sambuc mode_t fmode; 29*433d6423SLionel Sambuc off_t fsize; 30*433d6423SLionel Sambuc uid_t uid; 31*433d6423SLionel Sambuc gid_t gid; 32*433d6423SLionel Sambuc /* For char/block special files */ 33*433d6423SLionel Sambuc dev_t dev; 34*433d6423SLionel Sambuc 35*433d6423SLionel Sambuc /* Fields used for handling mount point and symbolic links */ 36*433d6423SLionel Sambuc int char_processed; 37*433d6423SLionel Sambuc unsigned char symloop; 38*433d6423SLionel Sambuc } lookup_res_t; 39*433d6423SLionel Sambuc 40*433d6423SLionel Sambuc 41*433d6423SLionel Sambuc #endif 42