From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OnWMZ-0008BE-L0 for linux-mtd@lists.infradead.org; Mon, 23 Aug 2010 12:42:56 +0000 Received: by bwz13 with SMTP id 13so5194804bwz.36 for ; Mon, 23 Aug 2010 05:42:54 -0700 (PDT) Subject: Re: Mounting UBIFS readonly - is it really readonly? From: Artem Bityutskiy To: Sergei Zhirikov In-Reply-To: <1282566220.24044.22.camel@localhost> References: <1282566220.24044.22.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Mon, 23 Aug 2010 15:41:23 +0300 Message-ID: <1282567283.24044.35.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2010-08-23 at 15:23 +0300, Artem Bityutskiy wrote: > On Tue, 2010-07-27 at 21:05 +0200, Sergei Zhirikov wrote: > > As you can see, there is "ro", which causes UBIFS to be initially > > mounted readonly. And later it is *never* remounted read-write. > > Everything seems to work as expected (I get "Read-only file system" > > error upon a write attempt) except one thing. Somehow the modification > > time of /dev/console is updated every time the system boots. Note: I'm > > not talking about the /dev/console located inside the /dev mount > > (which is tmpfs and is obvously writable), I'm talking about > > the /dev/console located on the root file system and accessed > > (probably by init) before /dev is mounted. I'm really puzzled. How is > > this possible? The root filesystem has been readonly all the time and > > still the timestamp is somehow updated. Does anyone have an idea what > > might be going on there? > > Did you solve the issue, I'm just curious. I think you can use inotify to verify whether the FS is ever changed? http://en.wikipedia.org/wiki/Inotify -- Best Regards, Artem Bityutskiy (Артём Битюцкий)