diff options
author | mav <mav@FreeBSD.org> | 2014-04-21 16:46:44 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-04-21 16:46:44 +0000 |
commit | 757e439c97420b9418828ec5fa2527408843524f (patch) | |
tree | a7ee16a3c430848df1e75cb4bd6da14cbbd8386e /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c | |
parent | dbfef773cea18e83e4ce96d630eb616e4c9df085 (diff) | |
download | FreeBSD-src-757e439c97420b9418828ec5fa2527408843524f.zip FreeBSD-src-757e439c97420b9418828ec5fa2527408843524f.tar.gz |
MFC r264193:
In addition to r264077, tell GEOM that we do support BIO_DELETE now.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c | 3 |
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 a6351da..30b13e7 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c @@ -2343,6 +2343,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; |