From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Ts'o Subject: Re: ext4_put_super is not called during system shutdown or restart Date: Mon, 25 Apr 2011 14:23:09 -0400 Message-ID: <20110425182309.GA9486@thunk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4@vger.kernel.org To: Zhao Cai Return-path: Received: from li9-11.members.linode.com ([67.18.176.11]:57309 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752821Ab1DYSXO (ORCPT ); Mon, 25 Apr 2011 14:23:14 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Apr 25, 2011 at 12:12:02AM -0400, Zhao Cai wrote: > I would appreciate if anyone can give me an answer. Is it designed > to be like this? > > Detailed situation: The system is ubuntu 11.04 installed in > VMware. I notice that ext4_put_super() is called when I unmount a > non-root ext4 partition. But it is not when I restart or shutdown > the system. > What happens on most Linux systems is that root file system gets remounted read/only during the reboot/shutdown sequence, whil non-root file systems are unmounted. I haven't tried 11.04 so I can't tell you what it is doing. If it isn't umounting the non-root file systems, or at least remounting the non-root file systems read/only, then something is probably going wrong. That's a question for the distribution.... - Ted