Whamcloud - gitweb
LU-8900 snapshot: user interface for write barrier on MDT 65/24265/19
authorFan Yong <fan.yong@intel.com>
Fri, 4 Nov 2016 10:29:14 +0000 (18:29 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Mar 2017 01:38:42 +0000 (01:38 +0000)
commit3afede2b8186912a08acfa8b1881356c7e11c656
tree0915cb16b46f31e1109fdf9a4b88459f0dedfe4b
parent20d724103f4edfaf59fcc5914c8d6200d4a0bdc5
LU-8900 snapshot: user interface for write barrier on MDT

The user can control the write barrier on MDTs via lctl commands:

Freeze barrier:
lctl barrier_freeze <fsname> [timeout (in second)]
NOTE: the default timeout value is 30 (seconds).

Thaw barrier:
lctl barrier_thaw <fsname>

Query barrier:
lctl barrier_stat <fsname>

Rescan barrier bitmap:
lctl barrier_rescan <fsname> [timeout (in second)]
NOTE: the default timeout value is 30 (seconds).

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Id953203fc3ce6ebbce9f1ae0511fbe2b3813bb9f
Reviewed-on: https://review.whamcloud.com/24265
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
12 files changed:
libcfs/include/libcfs/util/list.h
lustre/include/lustre/lustre_barrier_user.h
lustre/include/lustre_ioctl.h
lustre/mgs/Makefile.in
lustre/mgs/mgs_barrier.c [new file with mode: 0644]
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/target/barrier.c
lustre/tests/sanity.sh
lustre/utils/lctl.c
lustre/utils/obd.c
lustre/utils/obdctl.h