]> git.proxmox.com Git - mirror_zfs.git/commit
zfs receive and rollback can skew filesystem_count
authorloli10K <loli10K@users.noreply.github.com>
Tue, 8 Jan 2019 18:17:46 +0000 (19:17 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Jan 2019 18:17:46 +0000 (10:17 -0800)
commit0f5f23869a64ec12b1744ee3df25816c712667d2
tree7b4da23a1250d4b528152140b5b34be9aa7ffef2
parentf384c045d8135adf6fa4858948cc42ddb580c652
zfs receive and rollback can skew filesystem_count

This commit fixes a small issue which causes both zfs receive and
rollback operations to incorrectly increase the "filesystem_count"
property value.

This change also adds a new test group "limits" to the ZFS Test Suite
to exercise both filesystem_count/limit and snapshot_count/limit
functionality.

Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8232
configure.ac
module/zfs/dsl_destroy.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/Makefile.am
tests/zfs-tests/tests/functional/limits/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/limits/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/limits/filesystem_count.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/limits/filesystem_limit.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/limits/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/limits/snapshot_count.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/limits/snapshot_limit.ksh [new file with mode: 0755]