Tell VFS how many requests an FS can handle concurrently

This commit is contained in:
Thomas Veerman 2011-08-22 15:02:13 +00:00
parent 30be017762
commit 8a73de51f1
6 changed files with 11 additions and 0 deletions

View file

@ -53,6 +53,7 @@
#define RES_SEEK_POS_LO m9_l4
#define RES_SYMLOOP m9_s3
#define RES_UID m9_s4
#define RES_CONREQS m9_s3
/* VFS/FS flags */
#define REQ_RDONLY 001

View file

@ -35,6 +35,8 @@ PUBLIC int fs_readsuper(void)
fs_m_out.RES_GID = root->i_stat.gid;
fs_m_out.RES_DEV = NO_DEV;
fs_m_out.RES_CONREQS = 1;/* We can handle only 1 request at a time */
fs_mounted = TRUE;
return OK;

View file

@ -169,6 +169,8 @@ PUBLIC int fs_readsuper()
fs_m_out.RES_UID = root_ip->i_uid;
fs_m_out.RES_GID = root_ip->i_gid;
fs_m_out.RES_CONREQS = 1; /* We can handle only 1 request at a time */
return(r);
}

View file

@ -62,6 +62,8 @@ PUBLIC int do_readsuper()
m_out.RES_GID = opt.gid;
m_out.RES_DEV = NO_DEV;
m_out.RES_CONREQS = 1; /* We can handle only 1 request at a time */
state.mounted = TRUE;
return OK;

View file

@ -59,6 +59,8 @@ PUBLIC int fs_readsuper() {
fs_m_out.RES_UID = SYS_UID; /* Always root */
fs_m_out.RES_GID = SYS_GID; /* operator */
fs_m_out.RES_CONREQS = 1; /* We can handle only 1 request at a time */
return(r);
}

View file

@ -96,6 +96,8 @@ PUBLIC int fs_readsuper()
fs_m_out.RES_UID = root_ip->i_uid;
fs_m_out.RES_GID = root_ip->i_gid;
fs_m_out.RES_CONREQS = 1; /* We can handle only 1 request at a time */
return(r);
}