restoremeta: Fix unaligned access in restore_init() On sparc64 we get restoremeta tests failing with SIGBUS due to an unaligned access when scanning for the super block offset in the metadata file. memcpy the buffer into a gfs2_sb struct to avoid that. In most cases, if not always, this loop succeeds on the first iteration and might not even be needed, so the added overhead is minimal.
diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c index 80c11c9..32e1f70 100644
Andrew Price <anprice@redhat.com>
no
2020-09-05
Showing 1 to 4 of 4 entries
All known versions for source package 'gfs2-utils'