Merge zvol.c changes from PSARC 2010/306 Read-only ZFS pools
authorGeorge Wilson <George.Wilson@Sun.COM>
Sun, 3 Mar 2013 05:57:39 +0000 (00:57 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 4 Mar 2013 17:56:13 +0000 (09:56 -0800)
commita4430fce691d492aec382de0dfa937c05ee16500
treefe1008b6ed088cfbca5342d7c8148794febf38bc
parentb01615d5ac86913da1e092d0378bfb8f0e72af30
Merge zvol.c changes from PSARC 2010/306 Read-only ZFS pools

The changes to zvol.c were never merged from the last onnv_147
bulk update.  This was because zvol.c was largely rewritten
for Linux making it fairly easy to miss these sorts of changes.

This causes a regression when importing a zpool with zvols
read-only.  This does not impact pool which only contain
filesystem datasets.

References:
  illumos/illumos-gate@f9af39b

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1332
Closes #1333
module/zfs/zvol.c