Whamcloud - gitweb
LU-11417 llapi: add llapi_layout_get_by_xattr(3) API 30/33230/2
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 25 Sep 2018 10:17:46 +0000 (12:17 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Oct 2018 05:17:23 +0000 (05:17 +0000)
commit30d55877c30ca06db4003b70025fcc526e144569
tree72e980fcec2001747556ed4dd72524ed20a853cc
parent97a64c94671c3116eddd54ca2fdda88dfad466f0
LU-11417 llapi: add llapi_layout_get_by_xattr(3) API

Add new llapi_layout_get_by_xattr(3) interface to be able to extract
a layout structure from a LOV EA xattr.  This can be useful when the
xattr is retrieved from some external source (e.g. tarball, HSM, or
tools that directly access the underlying ldiskfs or ZFS filesystem).

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I9b405bf6b3119e44097f36d49ac5859ff93ebbe5
Reviewed-on: https://review.whamcloud.com/33230
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/llapi_layout.7
lustre/doc/llapi_layout_get_by_fd.3
lustre/doc/llapi_layout_get_by_xattr.3 [new file with mode: 0644]
lustre/utils/liblustreapi_layout.c