Whamcloud - gitweb
LU-12885 llapi: use enum llapi_layout_get_flags 24/36524/8
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Oct 2019 09:22:16 +0000 (03:22 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Apr 2021 02:10:26 +0000 (02:10 +0000)
commitae98601fed3e99af5376311cb4b02d2c65ccd1fe
tree73d44af4e7802757fbed0f2af86d2db839224eb9
parent3589a3141a4b9f94887b3ac5d6202233b06b8996
LU-12885 llapi: use enum llapi_layout_get_flags

For the llapi_layout_get_by_{fd,fid,path,xattr}() functions use a new
enum llapi_layout_get_flags as an argument to make it clear what flags
are passed, rather than a generic "uint32_t flags" argument.

Rename the flags to be consistent between the different functions,
instead of having separate flags for llapi_layout_get_by_xattr() and
add a LLAPI_ prefix to avoid potential namespace conflicts.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I671f1a3b96df4fa93e9529a373ceb450b13ebbe5
Reviewed-on: https://review.whamcloud.com/36524
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/llapi_layout_get_by_fd.3
lustre/include/lustre/lustreapi.h
lustre/utils/liblustreapi_layout.c