From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kabelac Subject: Re: dm-bufio Date: Fri, 23 Mar 2012 12:10:23 +0100 Message-ID: <4F6C5A1F.1000103@redhat.com> References: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: "Kasatkin, Dmitry" , mpatocka@redhat.com List-Id: dm-devel.ids Dne 23.3.2012 12:01, Kasatkin, Dmitry napsal(a): > Hello, > > When using dm-bufio and dm-io in general, how to ensure that all dirty > buffers are written to the storage when machine reboots? > suspend hooks could be used, but they are not called on reboot, only > when suspending/removing the target... > You mean you reboot without running 'sync' command? And yes - on reboot you should properly unmount devices - so you should see removal of target on your shutdown sequence - I believe Fedora currently tries to support switch to some shutdown ramdisk, so all filesystem and devices might be properly unmounted and destroyed. Zdenek