LU-13453 osd-ldiskfs: do not leak inode if OI insertion fails
osd_create() should destroy just created inode if OI insertion
fails.
also fixes lustre_index_restore() to drop nlink for object to
be removed.
the patch adds two tests:
- ENOSPC on OI insertion
- ENOSPC on .. insertion, i.e. directory block allocation
Lustre-change: https://review.whamcloud.com/38235
Lustre-commit:
e45e8a92a2ecab742b3680716a55aaa1d9827057
Test-Parameters: testlist=sanity-scrub mdscount=2 mdtcount=4
Test-Parameters: testlist=sanity-scrub mdscount=2 mdtcount=4
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I2a5db657c7dab54b8dc2c50bc29365d5ee754a2e
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52846
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>