Whamcloud - gitweb
LU-11739 lod: don't inherit default layout from root directory 35/34135/4
authorJian Yu <yujian@whamcloud.com>
Thu, 21 Feb 2019 20:15:12 +0000 (12:15 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 19 Mar 2019 06:00:21 +0000 (06:00 +0000)
commit6ceb90a2461e2724121a6c26434e11bcb31c9f43
tree31460345bafe30af75493d42b428bb3bf6f017cd
parent5eb52e556975def830fbe0a8c323bff09690b16a
LU-11739 lod: don't inherit default layout from root directory

There is no need to inherit the default directory layout from
the root directory when subdirectories are created therein.
This consumes xattr space on the subdirectories, and makes it
more complex to change the filesystem default layout in the future.

This patch fixes the above issue in lod_ah_init() to check if
the parent directory is the root directory and not copy
the default layout xattr to the new subdirectory.

Lustre-change: https://review.whamcloud.com/33956
Lustre-commit: 0a988cae95f99fee1a9c0d489ce00d0954d2a68e

Lustre-change: https://review.whamcloud.com/34175
Lustre-commit: ad1a74527f0ec59510bfa124b8280617a2b93840

Change-Id: Ie0d286785bdbcd73e2ae60b429e66d5d54b44eef
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34135
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-setstripe.1
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/tests/sanity.sh