From owner-svn-src-all@freebsd.org Sat Feb 20 00:04:44 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB8F6AAE563; Sat, 20 Feb 2016 00:04:44 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from vps.amdmi3.ru (vps.amdmi3.ru [109.234.38.216]) by mx1.freebsd.org (Postfix) with ESMTP id 715F817C; Sat, 20 Feb 2016 00:04:43 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from hive.panopticon (unknown [78.153.152.119]) by vps.amdmi3.ru (Postfix) with ESMTPS id 10D0AB0615; Sat, 20 Feb 2016 03:04:41 +0300 (MSK) Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 716B3D83; Sat, 20 Feb 2016 03:02:36 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 112191DF; Sat, 20 Feb 2016 03:03:56 +0300 (MSK) Date: Sat, 20 Feb 2016 03:03:56 +0300 From: Dmitry Marakasov To: Stefan Esser Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295800 - head/usr.bin/cap_mkdb Message-ID: <20160220000356.GA10175@hades.panopticon> References: <201602190842.u1J8gDOc015177@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201602190842.u1J8gDOc015177@repo.freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 00:04:44 -0000 * Stefan Esser (se@FreeBSD.org) wrote: > Log: > Remove O_SYNC from the options passed to dbmopen(). > > The output file is created as a temporary file that is moved over the > existing file after completion. Thus there is no need to immediately > flush all created db records to the temporary file. How is it guaranteed that the temporary file is completely written to disk before it's moved over the old database? I've run cap_mkdb under ktrace and I don't see fsync call there. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://amdmi3.ru