tests/sys/fs/ufs/sync_test.c: hide the alignment warningReported and tested by: dhwFixes: afe1dec7425c ("tests: add UFS synchronous write durability tests")Sponsored by: The FreeBSD Foundation
tests: add UFS synchronous write durability testsCheck that once fsync(2), fdatasync(2), or a write(2) with O_SYNC orO_DSYNC returns, the new data, the file size and every block pointerleading to
tests: add UFS synchronous write durability testsCheck that once fsync(2), fdatasync(2), or a write(2) with O_SYNC orO_DSYNC returns, the new data, the file size and every block pointerleading to the data are on disk. The cases append a block, fill a hole,append the first block that needs an indirect block and append below anexisting indirect block. Two more append after another write left anew direct block unsynced, which with soft updates cuts the size and thelater pointers of an inode written meanwhile. With O_SYNC and O_DSYNCon soft updates, those also check that the open already made theunsynced block durable.Each case runs on UFS without soft updates, with soft updates and withSU+J.The file systems live on md(4) and the checks read the inode, theindirect block and the data block straight from the device with libufsright after the synchronous call returns. There is no cache in frontof the disk device, so this shows what would survive a crash at thatmoment without having to crash anything.Sponsored by: Sippy Software, Inc.Reviewed by: phoTested by: phoDifferential Revision: https://reviews.freebsd.org/D60134MFC after: 1 month
show more ...