Whamcloud - gitweb
LU-7670 mdt: allow changelog commands to return errors 30/18030/28
authorBen Evans <bevans@cray.com>
Thu, 14 Jan 2016 20:58:15 +0000 (14:58 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Feb 2017 02:06:29 +0000 (02:06 +0000)
commitc152f7b0c84cab95e55fb0ba19d0b6bdeefd6e12
tree9063906e95dd71045669e9e8cf5747233ac2fa96
parent1f58cac8e4a7f5196ceab2a411bd11d152de27e4
LU-7670 mdt: allow changelog commands to return errors

Return errors to lctl/lfs users for out of range, and invalid IDs.
Currently only 0 is ever returned, regardless of outcome.  Some
information is printed in the MDS logs, but nothing on the client
to indicate success or failure.

Split purge and clear code into 2 separate paths.

Signed-off-by: Ben Evans <bevans@cray.com>
Change-Id: Ie139b170da0c8bef1c315ddb5361783230bb51ad
Reviewed-on: https://review.whamcloud.com/18030
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_device.c
lustre/mdt/mdt_handler.c
lustre/tests/sanity.sh
lustre/utils/lfs.c