]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure that ftruncate(2) is performed synchronously when file is
authorkib <kib@FreeBSD.org>
Wed, 18 May 2016 12:03:57 +0000 (12:03 +0000)
committerkib <kib@FreeBSD.org>
Wed, 18 May 2016 12:03:57 +0000 (12:03 +0000)
commit54336eef75323c51ab0b6399102309818fa3d988
tree0535aad52f106a9434beef2eceb1cb50ad716157
parentb56c0ce9bf9e3464e31f8c1cc5cca3a3b265ab91
Ensure that ftruncate(2) is performed synchronously when file is
opened in O_SYNC mode, at least for UFS.  This also handles
truncation, done due to the O_SYNC | O_TRUNC flags combination to
open(2), in synchronous way.

Noted by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/kern/vfs_vnops.c
sys/sys/vnode.h
sys/ufs/ufs/ufs_vnops.c