From fa1fc6e58b2b3711f5cc93f98298a7f6231f9493 Mon Sep 17 00:00:00 2001 From: Jerry Jelinek Date: Tue, 25 Jun 2013 22:07:36 +0000 Subject: OS-2342 panic in fop_read on hyprlofs mountpoint --- usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c index 0a399c6b6e..d1abec51a7 100644 --- a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c +++ b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2012 Joyent, Inc. All rights reserved. + * Copyright 2013 Joyent, Inc. All rights reserved. */ #include @@ -110,6 +110,8 @@ static int hyprlofs_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, caller_context_t *ct) { + if (vp->v_type == VDIR) + return (EISDIR); return (VOP_READ(REALVP(vp), uiop, ioflag, cr, ct)); } -- cgit v1.2.3