summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2013-07-06 00:02:52 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2013-07-06 00:02:52 +0000
commit74eb31f0ca6b34754ed6861e0a98bd277ee51605 (patch)
tree009f9c5d117f9bed08df1d691e55144fa08c2b40
parent0fe60623dc0a8afa2fd9432c8bfc14b2fc9d1514 (diff)
downloadillumos-joyent-74eb31f0ca6b34754ed6861e0a98bd277ee51605.tar.gz
OS-2358 zfs should not allow snapshot of inconsistent dataset (fix bogon)
-rw-r--r--usr/src/uts/common/fs/zfs/dsl_dataset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/zfs/dsl_dataset.c b/usr/src/uts/common/fs/zfs/dsl_dataset.c
index cb62fd7c7e..e455c2b712 100644
--- a/usr/src/uts/common/fs/zfs/dsl_dataset.c
+++ b/usr/src/uts/common/fs/zfs/dsl_dataset.c
@@ -1027,7 +1027,7 @@ dsl_dataset_snapshot_check(void *arg, dmu_tx_t *tx)
error = dsl_dataset_hold(dp, dsname, FTAG, &ds);
if (error == 0) {
error = dsl_dataset_snapshot_check_impl(ds,
- atp + 2, tx, B_FALSE);
+ atp + 1, tx, B_FALSE);
dsl_dataset_rele(ds, FTAG);
}