summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2013-06-25 22:07:36 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2013-06-25 22:07:36 +0000
commitfa1fc6e58b2b3711f5cc93f98298a7f6231f9493 (patch)
tree0df40c4673ee487b222125c3c315c65527afed19
parentf29744163246a3687afddd574cb3a4b9ff6ba895 (diff)
downloadillumos-joyent-fa1fc6e58b2b3711f5cc93f98298a7f6231f9493.tar.gz
OS-2342 panic in fop_read on hyprlofs mountpoint
-rw-r--r--usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c4
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h>
@@ -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));
}