From 8a73de51f1d8a758ecf202bce9692534025058d7 Mon Sep 17 00:00:00 2001 From: Thomas Veerman Date: Mon, 22 Aug 2011 15:02:13 +0000 Subject: [PATCH] Tell VFS how many requests an FS can handle concurrently --- common/include/minix/vfsif.h | 1 + lib/libvtreefs/mount.c | 2 ++ servers/ext2/mount.c | 2 ++ servers/hgfs/mount.c | 2 ++ servers/iso9660fs/mount.c | 2 ++ servers/mfs/mount.c | 2 ++ 6 files changed, 11 insertions(+) diff --git a/common/include/minix/vfsif.h b/common/include/minix/vfsif.h index ce76ad33c..6c40de2a0 100644 --- a/common/include/minix/vfsif.h +++ b/common/include/minix/vfsif.h @@ -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 diff --git a/lib/libvtreefs/mount.c b/lib/libvtreefs/mount.c index 652b13018..2813e749c 100644 --- a/lib/libvtreefs/mount.c +++ b/lib/libvtreefs/mount.c @@ -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; diff --git a/servers/ext2/mount.c b/servers/ext2/mount.c index 08341dce1..e5802ab8a 100644 --- a/servers/ext2/mount.c +++ b/servers/ext2/mount.c @@ -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); } diff --git a/servers/hgfs/mount.c b/servers/hgfs/mount.c index e1b83351e..5f9693069 100644 --- a/servers/hgfs/mount.c +++ b/servers/hgfs/mount.c @@ -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; diff --git a/servers/iso9660fs/mount.c b/servers/iso9660fs/mount.c index b9842fdd0..4ec990c3a 100644 --- a/servers/iso9660fs/mount.c +++ b/servers/iso9660fs/mount.c @@ -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); } diff --git a/servers/mfs/mount.c b/servers/mfs/mount.c index 9e3b43b08..614f9777a 100644 --- a/servers/mfs/mount.c +++ b/servers/mfs/mount.c @@ -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); } -- 2.44.0