Whamcloud - gitweb
LU-11739 lod: don't inherit default layout from root directory 56/33956/7
authorJian Yu <yujian@whamcloud.com>
Wed, 23 Jan 2019 01:44:26 +0000 (17:44 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Jan 2019 02:41:03 +0000 (02:41 +0000)
commit0a988cae95f99fee1a9c0d489ce00d0954d2a68e
tree0394e773c3b54cec756c8b09b9d17e04a3d296d3
parentbdfa4ba7b17f1242f516668adc39fc3ede403f4d
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.

Change-Id: Ie0d286785bdbcd73e2ae60b429e66d5d54b44eef
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33956
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
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