Define protocol version of {mode,ino,uid,gid}_t

Change-Id: Ia2027749f2ce55a561d19eb895a5618505e9a2ac
This commit is contained in:
Thomas Veerman
2014-02-18 11:25:01 +01:00
committed by sambuc
parent c66fd312d4
commit ab19ece134
62 changed files with 311 additions and 303 deletions
+1 -2
View File
@@ -65,8 +65,7 @@ struct inode *init_inode()
/*===========================================================================*
* find_inode *
*===========================================================================*/
struct inode *find_inode(ino_nr)
ino_t ino_nr;
struct inode *find_inode(pino_t ino_nr)
{
/* Get an inode based on its inode number. Do not increase its reference count.
*/
+3 -3
View File
@@ -51,7 +51,7 @@ int mask; /* search access mask of the caller */
/* Check whether the given inode may be accessed as directory.
* Return OK or an appropriate error code.
*/
mode_t mode;
pmode_t mode;
assert(attr->a_mask & SFFS_ATTR_MODE);
@@ -194,7 +194,7 @@ int do_lookup()
{
/* Resolve a path string to an inode.
*/
ino_t dir_ino_nr, root_ino_nr;
pino_t dir_ino_nr, root_ino_nr;
struct inode *cur_ino, *root_ino;
struct inode *next_ino = NULL;
struct sffs_attr attr;
@@ -202,7 +202,7 @@ int do_lookup()
char name[NAME_MAX+1];
char *ptr, *last;
vfs_ucred_t ucred;
mode_t mask;
pmode_t mask;
size_t len;
int r;
+2 -2
View File
@@ -13,7 +13,7 @@ void put_handle(struct inode *ino);
/* inode.c */
struct inode *init_inode(void);
struct inode *find_inode(ino_t ino_nr);
struct inode *find_inode(pino_t ino_nr);
void get_inode(struct inode *ino);
void put_inode(struct inode *ino);
void link_inode(struct inode *parent, struct inode *ino);
@@ -58,7 +58,7 @@ int do_read(void);
int do_getdents(void);
/* stat.c */
mode_t get_mode(struct inode *ino, int mode);
pmode_t get_mode(struct inode *ino, int mode);
int do_stat(void);
int do_chmod(void);
int do_utime(void);
+2 -2
View File
@@ -15,7 +15,7 @@
/*===========================================================================*
* get_mode *
*===========================================================================*/
mode_t get_mode(ino, mode)
pmode_t get_mode(ino, mode)
struct inode *ino;
int mode;
{
@@ -47,7 +47,7 @@ int do_stat()
struct sffs_attr attr;
struct stat stat;
char path[PATH_MAX];
ino_t ino_nr;
pino_t ino_nr;
int r;
ino_nr = m_in.REQ_INODE_NR;