Whamcloud - gitweb
LU-17393 osd: recreate LAST_ID for local seq 98/53898/10
authorHongchao Zhang <hongchao@whamcloud.com>
Tue, 19 Mar 2024 04:19:42 +0000 (12:19 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:09:59 +0000 (06:09 +0000)
commit88dd4d1c47ee48bdafb4d670f83eb3054054c646
tree4f1c176880e3690bf95635503d3eed285c430db1
parent2754dc6be5f9a0e339f4dd42fe1d16f6f9e4a203
LU-17393 osd: recreate LAST_ID for local seq

The file at /O/seq/LAST_ID in the sequences used by local storage
is not fixed by LFSCK currently, this patch addes the support to
scan the local storage sequences under root object director "/O"
and recreate or fix it accordingly.

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I840a0fcfa207528c5a0e9f0c87df8b4745bba671
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53898
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
12 files changed:
lustre/include/lustre_scrub.h
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_fid.h
lustre/mdt/mdt_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_scrub.c
lustre/ptlrpc/nodemap_storage.c
lustre/tests/sanity-scrub.sh
lustre/utils/ll_decode_filter_fid.c