History log of /freebsd-10-stable/usr.sbin/services_mkdb/services_mkdb.c
Revision Date Author Comments
# 296424 06-Mar-2016 dwmalone

MFC:
r295924: Make sure that hash-based db files fsync befor closing/syncing.
r295925: We no longer need O_SYNC pwd_mkd
r295465: We no longer need O_SYNC on services_mkdb
r295800: We no longer need O_SYNC on cap_mkdb

This should improve the performance of building db files.


# 293929 14-Jan-2016 garga

MFC r293312:

Make cap_mkdb and services_mkdb file operations sync

Similar fix was done for passwd and group operations in r285050. When a
temporary file is created and then renamed to replace official file there
are no checks to make sure data was written to disk and if a power cycle
happens at this time, system can end up with a 0 length file

Approved by: bapt
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D2982


# 263028 11-Mar-2014 jhb

MFC 261030:
Similar to cap_mkdb(1), add endianness support to services_mkdb(1)
to support cross-builds once this is invoked during releases.


# 263028 11-Mar-2014 jhb

MFC 261030:
Similar to cap_mkdb(1), add endianness support to services_mkdb(1)
to support cross-builds once this is invoked during releases.