Whamcloud - gitweb
LU-3437 mdd: Fix ACL/def_ACL during object creation. 52/6552/8
authorwang di <di.wang@intel.com>
Wed, 5 Jun 2013 07:06:30 +0000 (00:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Jul 2013 06:09:45 +0000 (06:09 +0000)
commit6350af100c204a4db794e7472951ab72c3bc20ef
tree1893fe0940967dca7b4f111212860fc2880f9211
parentb3dcb926d4b01fc7145dba956fc5b6d9fd0cccfb
LU-3437 mdd: Fix ACL/def_ACL during object creation.

In mdd_acl_init, after getting default ACL which will
be converted to ACL, then later(in mdd_create) the
acl_buf is re-used to set both default_ACL and ACL,
which is definitely wrong.

And also the remote directory creation does not use
correct ACL/default ACL.

This patch use different buf for def ACL and ACL to avoid
confusion.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I30177bc55e4c6b4d916ccf118ab3485f3394fa87
Reviewed-on: http://review.whamcloud.com/6552
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_dir.c