Whamcloud - gitweb
LU-11838 scrub: handle s_uuid change to uuid_t 89/34689/8
authorJames Simmons <jsimmons@infradead.org>
Thu, 20 Jun 2019 20:57:01 +0000 (16:57 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:33:29 +0000 (21:33 +0000)
commit90fd0cd449b9ae3fbff5a99e0edcf288799037c0
treee0455d8942bd964e784af06fc1fed57fc4cb3949
parentd05fee1919911e56f6ef7eb018c90ae19fa415aa
LU-11838 scrub: handle s_uuid change to uuid_t

The 4.12 kernel changed the s_uuid field in struct super_block from
an character array to an uuid_t. While ldiskfs uses it own s_uuid
field in struct ext4_super_block that field is a char array instead
of an uuid. Currently on going effort are being down in the linux
kernel to move to uuid_t so I suspect this will change in the future.
Since this is the case change all the character arrays for uuid
handling to uuid_t located in the scrubbing code. Change osd-ldiskfs
to use the struct super_block uuid, which is equivalent to s_es
version, to handle the uuid_t changes now.

Change-Id: I40643d342b5bc17a6ef922e99b3e8524930822de
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/34689
Tested-by: Jenkins
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/include/lustre_scrub.h
lustre/obdclass/scrub.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_scrub.c