Whamcloud - gitweb
LU-4973 mdd: only check links limit for non-directories 50/10150/6
authorWang Di <di.wang@intel.com>
Fri, 6 Jun 2014 08:54:33 +0000 (01:54 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 12 Jun 2014 20:39:43 +0000 (20:39 +0000)
commit8d5344f3e4e2e055acbe0d6179abaf1811672557
tree3699a0c516dc52daedaa603d82eae07a50ec1ff6
parenta95e9e1c4f845249f83498f9650aa9c49a0dca60
LU-4973 mdd: only check links limit for non-directories

Since directory(for ldiskfs) might exceed maximum link count, so we
do not check maximum link count for dir in MDD layer.

Also add a few comments to mdd_may_xxx() to describe the input
parameters and return values.

Clean up a couple of error messages that are spewed when doing
invalid namespace operations.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I36c354f6f05f1c0fb8f632dfc23f8e2ef63ebbe5
Reviewed-on: http://review.whamcloud.com/10150
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/mdc/mdc_locks.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_permission.c
lustre/mdt/mdt_xattr.c
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/sanity.sh