public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Richard Kojedzinszky <krichy@tvnetwork.hu>
Cc: linux-ext4@vger.kernel.org
Subject: Re: minix/ext2 + rd problem
Date: Wed, 15 Oct 2008 06:16:44 +0200	[thread overview]
Message-ID: <20081015041644.GA24613@wotan.suse.de> (raw)
In-Reply-To: <alpine.DEB.1.10.0810141631130.30331@krichy.tvnetwork.hu>

Hi, 
Thanks for reporting this.

On Tue, Oct 14, 2008 at 04:43:55PM +0200, Richard Kojedzinszky wrote:
> dear all,
> 
> I got an embedded system, where I use ramdisk, minix on it as a filesystem 
> for /etc. With kernels 2.4 and with 2.6.19 kernels also, the following 
> code did exactly what i wanted, creating an image of the /etc without 
> unmounting it:
> 
> # mount -o remount,ro /etc
> # cat /dev/ram0 > /tmp/image
> # mount -o remount,rw /etc
> 
> And then I had a consistent image from /etc in /tmp/image.
> 
> This worked still with kernel version 2.6.23.14, but nowadays i upgraded 
> to 2.6.26.2, and noticed that the little code didnt work anymore. I wrote 
> a simple test script for checking, and reproducing the issue, which is 
> also attached. Unfortunately this does not work with ext2 also.
> 
> my linux version is:
> Linux version 2.6.26 (root@krichy.tvnetwork.hu) (gcc version 4.2.4 (Debian 
> 4.2.4-3)) #27 SMP PREEMPT Tue Oct 14 15:19:30 CEST 2008
> 
> i use debian lenny/sid.
> 
> Were there any intended change that made this behaviour change or was it 
> by an accident?

That shouldn't have been changed on purpose, unless it is doing something
funny that worked by accident before.

/dev/ram will behave much more like any other block device now (with brd)
wheras previously it was probably more coherent between filesystem and
block device node. Hmm, does all the filesystems cache get written back
before remount ro return?

Could you try sticking a sync after remount,ro?

Thanks,
Nick

  reply	other threads:[~2008-10-15  4:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14 14:43 minix/ext2 + rd problem Richard Kojedzinszky
2008-10-15  4:16 ` Nick Piggin [this message]
2008-10-15  8:19   ` Richard Kojedzinszky
2008-10-15 14:05     ` Nick Piggin
2008-10-15 14:10       ` Richard Kojedzinszky
2008-10-15 14:34         ` Nick Piggin
2008-10-15 19:22           ` Matthew Wilcox
2008-10-16  3:48             ` Nick Piggin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081015041644.GA24613@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=krichy@tvnetwork.hu \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox