summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1998-06-25 16:54:41 +0000
committerdt <dt@FreeBSD.org>1998-06-25 16:54:41 +0000
commitc6c8ca45cd01d561b7a60e45f816463c4a147d86 (patch)
tree54f950aff007ec95b5ad6f6e0f1a9c6e2a039ff3 /sys/fs
parent267ffb24287e8a52277d710113748f6254f545c2 (diff)
downloadFreeBSD-src-c6c8ca45cd01d561b7a60e45f816463c4a147d86.zip
FreeBSD-src-c6c8ca45cd01d561b7a60e45f816463c4a147d86.tar.gz
Remove "not hungly" panics. Cookies now used by the linux and ibcs2
emulators. The emulators assume that filesystem may just ignore cookies, and handle this case correctly. So we just ignore cookies. Also sync *_readdir "prototypes" with reality.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_vnops.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c
index 1e4c388..fb1a560 100644
--- a/sys/fs/procfs/procfs_vnops.c
+++ b/sys/fs/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;
OpenPOWER on IntegriCloud