summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/blkdev.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@nexenta.com>2011-07-11 07:38:13 -0700
committerGarrett D'Amore <garrett@nexenta.com>2011-07-11 07:38:13 -0700
commit86e3bca69f59096fa71848f8e8614c38ac86a24a (patch)
tree8f572afc54d898214dd90245321e5f3fb9b23ca3 /usr/src/uts/common/sys/blkdev.h
parented9aabc708901eb85fb058aacbd851c0fd958a16 (diff)
downloadillumos-joyent-86e3bca69f59096fa71848f8e8614c38ac86a24a.tar.gz
1144 blkdev should support dump(9e)
Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Alexey Zaytsev <alexey.zaytsev@nexenta.com> Approved by: Eric Schrock <eric.schrock@delphix.com>
Diffstat (limited to 'usr/src/uts/common/sys/blkdev.h')
-rw-r--r--usr/src/uts/common/sys/blkdev.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/blkdev.h b/usr/src/uts/common/sys/blkdev.h
index 0ecfbb4827..2307610bae 100644
--- a/usr/src/uts/common/sys/blkdev.h
+++ b/usr/src/uts/common/sys/blkdev.h
@@ -19,6 +19,7 @@
* CDDL HEADER END
*/
/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
*/
@@ -40,9 +41,7 @@ extern "C" {
* but do not need all the capabilities of SCSA. So we make quite a few
* simplifications:
*
- * 1) Device block size is fixed at 512 bytes. (Devices with larger
- * block sizes can still operate, but will need to support some
- * form of read-modify-write, and will take a performance penalty.)
+ * 1) Device block size is a multiple of 512 bytes.
*
* 2) Non-rotating media. We assume a simple linear layout.
*
@@ -89,6 +88,7 @@ struct bd_xfer {
ddi_dma_cookie_t x_dmac;
unsigned x_ndmac;
caddr_t x_kaddr;
+ unsigned x_flags;
};
#define BD_XFER_POLL (1U << 0) /* no interrupts (dump) */
@@ -130,7 +130,6 @@ struct bd_ops {
int (*o_sync_cache)(void *, bd_xfer_t *);
int (*o_read)(void *, bd_xfer_t *);
int (*o_write)(void *, bd_xfer_t *);
- int (*o_dump)(void *, bd_xfer_t *);
};
#define BD_OPS_VERSION_0 0