Whamcloud - gitweb
LU-2435 osd-zfs: use zfs native dnode accounting 94/15294/28
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 17 Feb 2017 02:09:33 +0000 (18:09 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 30 Mar 2017 03:54:48 +0000 (03:54 +0000)
commit11afef00b6af407b8987076bd4f1ec9bc77eb75e
treea5e6ed75071a33a64034fb32acc44cfd61e24b2c
parentc0d30fc79be0788fca19bfa7e3b5048881195fc6
LU-2435 osd-zfs: use zfs native dnode accounting

If ZFS userobj_accounting feature exists, use it for osd-zfs object
accounting; otherwise estimate object use by block space.

Disable quota check in conf-sanity:32b and sanity-quota:7e if the
underlying zfs version is below 0.7.0. For conf-sanity test, if the
running ZFS is version 0.7.0 or higher, upgrade the zpool image to
enable native dnode accounting. That ensures we also test the upgrade
procedure.

Test-Parameters: mdtfilesystemtype=zfs ostfilesystemtype=zfs testlist=sanity-quota,sanity-quota,sanity-quota,conf-sanity,conf-sanity envdefinitions=SLOW=yes
Change-Id: I0fe47fd0e3d787663a4c72fd708678827fdfb474
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-on: https://review.whamcloud.com/15294
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
config/lustre-build-zfs.m4
lustre/osd-zfs/osd_handler.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_lproc.c
lustre/osd-zfs/osd_object.c
lustre/osd-zfs/osd_quota.c
lustre/tests/conf-sanity.sh
lustre/tests/sanity-quota.sh