Whamcloud - gitweb
LU-11025 obdclass: add lu_device_operations::ldo_fid_alloc() 82/37282/10
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 6 Jan 2020 11:44:33 +0000 (19:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:22:30 +0000 (08:22 +0000)
commit736d2d62ab1f00926000f0c3aa31fcb6aa53050f
tree595686c4b6a95aac8182117bd3ae978f34a3cad0
parent3108bbb0b8485484bc1ac8ba5bac4276fc11c7c3
LU-11025 obdclass: add lu_device_operations::ldo_fid_alloc()

Add an interface ldo_fid_alloc in lu_device_operations, which is to
allocate a FID by parent object and sub file name, this will be
used to migrate sub files for directory restripe.

The existing osd_fid_alloc() and osp_fid_alloc() will switch to this
interface from obd_ops::o_fid_alloc().

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ide480fe492fd2d4d5de675bbc61aee7e2a9e3ce3
Reviewed-on: https://review.whamcloud.com/37282
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/dt_object.h
lustre/include/lu_object.h
lustre/lod/lod_dev.c
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/mdd/mdd_device.c
lustre/obdclass/llog_osd.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_handler.c
lustre/osp/osp_dev.c