Whamcloud - gitweb
LU-3613 llite: Add ioctl to get parent fids from link EA. 69/7069/17
authorHenri Doreau <henri.doreau@cea.fr>
Wed, 15 Oct 2014 07:56:04 +0000 (09:56 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 31 Oct 2014 15:35:06 +0000 (15:35 +0000)
commitb6e3612d845cf506e977f49aa85ddd1e709fd194
tree5e839ce01bd7568a28873fd97b0bada85e30465d
parentb6a3222a0b35b939f40bb93087d8993e81885b26
LU-3613 llite: Add ioctl to get parent fids from link EA.

Added LL_IOC_GETPARENT to retrieve the <parent_fid>/name(s) of a given
entry, based on its link EA. This saves multiple calls to
path2fid/fid2path.

Added llapi_path2parent() and llapi_fd2parent() wrappers.

Added '--parents' option to lfs path2fid to call this function.

New sanity test 154f to validate the behavior.

Signed-off-by: Thomas Leibovici <thomas.leibovici@cea.fr>
Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: I10f9316da605050be8fc709fe88d87abe86e22a4
Reviewed-on: http://review.whamcloud.com/7069
Tested-by: Jenkins
Reviewed-by: Ned Bass <bass6@llnl.gov>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
15 files changed:
lustre/doc/Makefile.am
lustre/doc/lfs.1
lustre/doc/llapi_fd2parent.3 [new file with mode: 0644]
lustre/doc/llapi_path2parent.3 [new file with mode: 0644]
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_user.h
lustre/include/lustre/lustreapi.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/tests/Makefile.am
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c