Whamcloud - gitweb
LU-10810 osd: implement lseek method in OSD 06/39706/4
authorMikhail Pershin <mpershin@whamcloud.com>
Mon, 17 Aug 2020 16:36:37 +0000 (19:36 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 12 Sep 2020 15:45:50 +0000 (15:45 +0000)
commit947af94817f8eeb5e6108b0b3cde65419b13c8d3
tree54370a25d92a67b3b0ebcbe1faadbed4be3c6717
parentcc8fb042b7aa6f4147900b739d3b8b891d1677c7
LU-10810 osd: implement lseek method in OSD

Introduce lseek support in dt_object methods and at OSD level

This is server support for SEEK_HOLE and SEEK_DATA distributed
request, it returns a resulting offset or error code

ZFS support is added as well but it is not yet available due to
missing export of dmu_offset_next() function.

Patch adds also osd_quasi_file() common method to create fake
file structure to use in inode i_fop calls

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I3802743e31c94d2de219b72a540c5df9c72f1897
Reviewed-on: https://review.whamcloud.com/39706
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-zfs.m4
lustre/include/dt_object.h
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_io.c