Whamcloud - gitweb
LU-9367 llite: restore ll_file_getstripe in ll_lov_setstripe 15/26915/13
authorBobi Jam <bobijam.xu@intel.com>
Tue, 2 May 2017 12:30:27 +0000 (20:30 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 12 Jun 2017 22:35:10 +0000 (22:35 +0000)
commit364ec95f3688ac5cc3195f7f46d0d860844796f9
treef0dd196863558adebdaff1a020c58217488ccbe7
parent2383a62d61b1bf43eb967c1f1e9babedde68b259
LU-9367 llite: restore ll_file_getstripe in ll_lov_setstripe

Commit fafe6b4d4a6fa63cedff3bd44e6578009578b3d7 has get rid of
the call to ll_file_getstripe in ll_lov_setstripe.

Add a @size parameter for series of xxx_getstripe interfaces,
indicating the max buffer size that user provides to hold the
stripe information. It is mainly for the ll_lov_setstripe, which
will call ll_file_getstripe to fetch basic stripe inforation.

Add LL_IOC_LOV_SETSTRIPE_NEW/LL_IOC_LOV_GETSTRIPE_NEW ioctl interface
which defines the interface correctly, which could be used in later
Lustre versions.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ic2f541fa3c74133eb40d230c8a836434043d7691
Reviewed-on: https://review.whamcloud.com/26915
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/cl_object.h
lustre/include/lustre/lustre_user.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/lov/lov_cl_internal.h
lustre/lov/lov_object.c
lustre/lov/lov_pack.c
lustre/obdclass/cl_object.c