Whamcloud - gitweb
LU-993 osd: code cleanup for directory nlink count
authorNiu Yawei <niu@whamcloud.com>
Mon, 16 Jan 2012 06:52:12 +0000 (22:52 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 9 Feb 2012 07:43:48 +0000 (02:43 -0500)
commitec20be97b9f977d3f4944523baaffb1bf95cf76c
treebb2cb2d1b3716c75856e37aeb55ab2e4b86b0668
parente4872648bfaea1795133f10695c40e0fd3069831
LU-993 osd: code cleanup for directory nlink count

- LDISKFS_LINK_MAX is ldiskfs unique, we should not handle it in the mdd
  layer. It's moved down to the osd layer in this patch.

- Remove the declared operation count assertion in OSD_EXEC_OP(), since
  the undo operations are not declared, if there some operation failed,
  the undo operation will trigger the assertion unnecessarily.

- Restore the sub-directory count to 70000 for the sanity test_51b, and
  add test_51ba for testing unlink > LDISKFS_LINK_MAX sub-directories.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Id02e7d2ac3a7664a55566b1de783f0a73162339b
Reviewed-on: http://review.whamcloud.com/1971
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/sanity.sh