From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 16 Nov 2010 22:39:09 -0500 Message-ID: Subject: Re: [9fans] p9p venti sync? From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 834a59d6-ead6-11e9-9d60-3106f5b1d025 On Tue, Nov 16, 2010 at 10:19 PM, David Leimbach wrote: > On Tuesday, November 16, 2010, Russ Cox wrote: >> On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach wrot= e: >>> I'm trying to figure out how to correctly sync a plan9port venti instan= ce so >>> I can start it back up again and have it actually function :-). >>> using venti/sync doesn't appear to get the job done... >> >> It should. =C2=A0Not using venti/sync should work too since >> vac etc all sync before hanging up. =C2=A0The flushicache/flushdcache >> trick will make restarting a little faster, but it should not >> be necessary for correctness and shouldn't even be >> that much faster. > > I did a kill TERM... should the signal handler have cleaned up or was > I supposed to send HUP? There's no cleanup. The data's on disk after a sync RPC, which is what venti/sync does and also what vac does when it is done. Venti's writes are ordered so that the on-disk state is always recoverable. Because of that, there's no explicit shutdown: you just kill the server however you like. Russ