aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-04-06 16:31:28 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-04-06 16:31:28 +0000
commita96fefe04213eaf77ad283eecff1ffefb3bd5697 (patch)
treed0f885d0cbdf874590f15bf20ab163bd74f281a0 /sys/cddl
parentf601272298e9c46d42a344883a803fcc876beb4d (diff)
downloadsrc-a96fefe04213eaf77ad283eecff1ffefb3bd5697.tar.gz
src-a96fefe04213eaf77ad283eecff1ffefb3bd5697.zip
In addition to r264077, tell GEOM that we do support BIO_DELETE now.
Notes
Notes: svn path=/head/; revision=264193
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
index 742989ea071d..fb3789f45b11 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
@@ -2440,6 +2440,9 @@ zvol_geom_start(struct bio *bp)
zvol_strategy(bp);
break;
case BIO_GETATTR:
+ if (g_handleattr_int(bp, "GEOM::candelete", 1))
+ return;
+ /* FALLTHROUGH */
default:
g_io_deliver(bp, EOPNOTSUPP);
break;