]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide a sysctl to force synchronous initialization of inode blocks.
authormarkj <markj@FreeBSD.org>
Sat, 9 Dec 2017 15:44:30 +0000 (15:44 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 9 Dec 2017 15:44:30 +0000 (15:44 +0000)
commitb0e68228fd666522c26fd5488242285904c0beaf
tree1192b0cc0bc76e1059d146ab5bd3fa641b1de9ea
parent3554139c7885a5c203e2023b0fc1e3f9425d161d
Provide a sysctl to force synchronous initialization of inode blocks.

FFS performs asynchronous inode initialization, using a barrier write
to ensure that the inode block is written before the corresponding
cylinder group header update. Some GEOMs do not appear to handle
BIO_ORDERED correctly, meaning that the barrier write may not work as
intended. The sysctl allows one to work around this problem at the
cost of expensive file creation on new filesystems. The default
behaviour is unchanged.

Reviewed by: kib, mckusick
MFC after: 1 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D13428
sys/ufs/ffs/ffs_alloc.c