summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2015-07-01 03:03:02 +0300
committerRichard Lowe <richlowe@richlowe.net>2015-07-14 11:59:30 -0400
commit0d21b83c18c9449d0fa9b809c76225edbc5d54d2 (patch)
treee9bad091b40e89b4a69ee14249b150bc5f5f0a9e
parent8a9764c34ea643308eed074c3fef1579dabe8461 (diff)
downloadillumos-joyent-0d21b83c18c9449d0fa9b809c76225edbc5d54d2.tar.gz
6046 SPARC boot should support com.delphix:hole_birth
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/psm/stand/bootblks/zfs/common/zfs.fth5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/psm/stand/bootblks/zfs/common/zfs.fth b/usr/src/psm/stand/bootblks/zfs/common/zfs.fth
index 569a845f08..72a0a4ae4e 100644
--- a/usr/src/psm/stand/bootblks/zfs/common/zfs.fth
+++ b/usr/src/psm/stand/bootblks/zfs/common/zfs.fth
@@ -500,7 +500,10 @@ new-device
\ block read that check for holes, gangs, compression, etc
: read-bp ( adr len bp -- )
\ sparse block?
- dup blk_birth x0= if
+ dup x@ x0= ( addr len bp flag0 )
+ swap dup 8 + x@ x0= ( addr len flag0 bp flag1 )
+ rot ( addr len bp flag1 flag0 )
+ and if
drop erase exit ( )
then