From: Christoph Hellwig Subject: Re: [PATCH] Syscalls: reboot: Add options to the reboot syscall to remount filesystems ro Date: Thu, 3 Mar 2011 15:00:27 +0100 Message-ID: <20110303140027.GA8116@lst.de> References: <1299137483-10975-1-git-send-email-ksumrall@android.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, Alexander Viro , Christoph Hellwig , Andrew Morton , Jan Kara , Jens Axboe , Matthew Wilcox , Eric Paris , Dave Young , Jiri Slaby , James Morris , linux-fsdevel@vger.kernel.org To: Ken Sumrall Return-path: Content-Disposition: inline In-Reply-To: <1299137483-10975-1-git-send-email-ksumrall@android.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Mar 02, 2011 at 11:31:22PM -0800, Ken Sumrall wrote: > Add 4 new commands to the reboot system call, that do the same thing as the > RESTART, HALT, POWER_OFF, and RESTART2 commands, but also remount writable > filesystems as read-only just before doing what the command normally does. > Now that Android is using EXT4, and since we don't have a standard init > setup to unmount filesystems before rebooting, this allows the system to > reboot with clean filesystems, and also improves boot time as the journal > does not need to be replayed when mounting the filesystem. Just fix your init. Or better switch from a piece of shit like Android userspace to something sane for your phone.