Whamcloud - gitweb
LU-4825 ofd: fix OBD_FAIL_OST_ENOINO/ENOSPC behaviour 63/20163/5
authorAndreas Dilger <andreas.dilger@intel.com>
Sat, 21 Nov 2015 05:51:15 +0000 (22:51 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Mar 2017 02:58:02 +0000 (02:58 +0000)
commit659c81ca4bfbbc536260ff15bb31da84d9366791
tree3c2e7be25f36007e4b7db26503a60717b595040d
parentef25ecdd8574a5932fe970f6b58e8d0c458d7e9e
LU-4825 ofd: fix OBD_FAIL_OST_ENOINO/ENOSPC behaviour

Fix the OBD_FAIL_OST_ENOINO and OBD_FAIL_OST_ENOSPC behaviour so that
they also reduce the total number of inodes or blocks when setting the
number of free inodes/blocks to zero.  This allows "lfs df [-i]" to
still report the correct number of blocks and inodes used on the OST.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ia746273e19aed22a0926708899de009b8d5cab07
Reviewed-on: https://review.whamcloud.com/20163
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ofd/ofd_obd.c