aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1998-06-25 16:54:41 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1998-06-25 16:54:41 +0000
commit6bfc1a02b121816ebbe6b38f2879445550b2ea82 (patch)
tree66c990e896f217242ed2076c8dd4dc7ed2001cb7 /sys/miscfs
parentb62591052cd21c57c2473af596c102447929bbce (diff)
Notes
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/kernfs/kernfs_vnops.c13
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c13
2 files changed, 6 insertions, 20 deletions
diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c
index a6bbfece6162..0b396ded2d93 100644
--- a/sys/miscfs/kernfs/kernfs_vnops.c
+++ b/sys/miscfs/kernfs/kernfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95
- * $Id: kernfs_vnops.c,v 1.32 1998/06/10 21:21:30 dfr Exp $
+ * $Id: kernfs_vnops.c,v 1.33 1998/06/14 12:34:42 bde Exp $
*/
/*
@@ -520,8 +520,8 @@ kernfs_readdir(ap)
struct uio *a_uio;
struct ucred *a_cred;
int *a_eofflag;
- u_long *a_cookies;
- int a_ncookies;
+ int *a_ncookies;
+ u_long **a_cookies;
} */ *ap;
{
int error, i, off;
@@ -532,13 +532,6 @@ kernfs_readdir(ap)
if (ap->a_vp->v_type != VDIR)
return (ENOTDIR);
- /*
- * We don't allow exporting kernfs mounts, and currently local
- * requests do not need cookies.
- */
- if (ap->a_ncookies != NULL)
- panic("kernfs_readdir: not hungry");
-
off = (int)uio->uio_offset;
if (off != uio->uio_offset || off < 0 || (u_int)off % UIO_MX != 0 ||
uio->uio_resid < UIO_MX)
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 1e4c388d9a23..fb1a560e8bff 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95
*
- * $Id: procfs_vnops.c,v 1.58 1998/06/10 06:34:57 peter Exp $
+ * $Id: procfs_vnops.c,v 1.59 1998/06/14 12:53:39 bde Exp $
*/
/*
@@ -799,8 +799,8 @@ procfs_readdir(ap)
struct uio *a_uio;
struct ucred *a_cred;
int *a_eofflag;
- u_long *a_cookies;
- int a_ncookies;
+ int *a_ncookies;
+ u_long **a_cookies;
} */ *ap;
{
struct uio *uio = ap->a_uio;
@@ -809,13 +809,6 @@ procfs_readdir(ap)
struct pfsnode *pfs;
int count, error, i, off;
- /*
- * We don't allow exporting procfs mounts, and currently local
- * requests do not need cookies.
- */
- if (ap->a_ncookies)
- panic("procfs_readdir: not hungry");
-
pfs = VTOPFS(ap->a_vp);
off = (int)uio->uio_offset;