Whamcloud - gitweb
LU-601 mdd: cleanup error messages and code style
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Nov 2011 20:06:30 +0000 (13:06 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 16 Feb 2012 17:28:16 +0000 (12:28 -0500)
commitadc30ea680674fc8aec6377dff60748bb566912a
tree19a839b44370a531a42656a5433add91f0369259
parent37afae68210508c49734c726551b07fdd3080911
LU-601 mdd: cleanup error messages and code style

While looking at LU-601, I added comment blocks for several of
the functions in the PENDING directory cleanup path, along with
fixes to the code style and error messages.  No functional changes
should be introduced by this code change.

The error message that was formerly printed by the 1.8 MDS in
mds_unlink_orphan() and checked by replay-single.sh test_37 no
longer exists in the 2.x MDS code.  Re-add a message if there
is an error cleaning up directory orphans, and change test_37
to match the resulting error message (similar to the 1.8 code).

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic97843e49643041513f3b2fc6a40f2be63ffddca
Reviewed-on: http://review.whamcloud.com/1679
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_orphans.c
lustre/tests/replay-single.sh