Whamcloud - gitweb
LU-11355 lustre: enable fstrim on lustre device 31/33131/12
authorWang Shilong <wshilong@ddn.com>
Thu, 11 Apr 2019 00:40:23 +0000 (08:40 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2019 03:36:40 +0000 (03:36 +0000)
commitd5be104cc9b0c7a71b30aa5feb16873aa30803a9
treea11ecf0731788c9b348e22355263655bc83d22b6
parent1d71044851192ee36f0841b525d3df0e3b054794
LU-11355 lustre: enable fstrim on lustre device

pass the FITRIM ioctl through the OST/MDT
mountpoint to the underlying filesystem, which
allows us to run fstrim on server mount point directly.

Change-Id: Ia6f9b43e48245ee7907a47f05c3924b3640bc734
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/33131
Reviewed-by: Li Xi <lixi@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/dt_object.h
lustre/obdclass/obd_mount_server.c
lustre/osd-ldiskfs/osd_handler.c