From: "Jorge Boncompte [DTI2]" <jorge@dti2.net>
To: npiggin@suse.de
Cc: ext-adrian.hunter@nokia.com, LKML <linux-kernel@vger.kernel.org>
Subject: Re: Error testing ext3 on brd ramdisk
Date: Thu, 05 Mar 2009 12:54:33 +0100 [thread overview]
Message-ID: <49AFBD79.1020008@dti2.net> (raw)
In-Reply-To: <20090305104523.GC17815@wotan.suse.de>
Nick Piggin escribió:
> On Thu, Mar 05, 2009 at 10:19:46AM +0100, Jorge Boncompte [DTI2] wrote:
>> -----------
>> umount /etc (/etc is what is mounted from /dev/ram0)
>> dd if=/dev/zero of=/dev/ram0 bs=1k count=1000
>> mount /dev/ram0 /etc -t minix -o rw
>> -----------
>> ...succeds and mounts a corrupted filesystem with the old content. Doing
>> the same with the all ramdisk driver fails on mount with "no filesystem
>> found".
>>
>> If I do...
>> -----------
>> umount /etc (/etc is what is mounted from /dev/ram0)
>> echo 3 > /proc/sys/vm/drop_caches
>> dd if=/dev/zero of=/dev/ram0 bs=1k count=1000
>> mount /dev/ram0 /etc -t minix -o rw
>> ----------
>> ... then the mount fails with no filesystem found as it should.
>
> I can't reproduce this. Is the filesystem definitely being
> unmounted and nothing else is holding the bdev inode open?
I don't know about the bdev inode :-( but I am sure that in
/proc/mounts does not appear as listed.
> I can only imagine something like this happening if the fs
> is still mounted, in which case it will write back some
> superblock over the zeroed bdev, possibly allowing it to mount
> again, or if the zeroed writes somehow get lost, which would
> seem like a problem with the buffer cache.
>
> Actually, the 2nd scenario is more likely, because you wouldn't
> see it with the old rd driver because it never allows the buffer
> cache to be freed.
>
> Are you getting any errors in your dmesg or anything like that?
No until I try to mount the filesystem again, then minix starts to
complain.
-----------------
minix_free_block (ram0:38): bit already cleared
init_special_inode: bogus i_mode (0)
init_special_inode: bogus i_mode (0)
init_special_inode: bogus i_mode (0)
init_special_inode: bogus i_mode (0)
init_special_inode: bogus i_mode (0)
.........
-----------------
> What happens when you run the following patch? Can you run the
> test case then when you reproduce the problem, see if anything is
> in dmesg?
After a successful save
------------------
Mar 5 13:34:34 system: configuration save requested by user=root
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: truncated bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: truncated bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: truncated bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: truncated bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:34 kernel: truncated bdev
Mar 5 13:34:34 kernel: killing bdev
Mar 5 13:34:34 kernel: syncing bdev
Mar 5 13:34:35 kernel: truncated bdev
Mar 5 13:34:35 kernel: killing bdev
Mar 5 13:34:35 kernel: syncing bdev
Mar 5 13:34:35 kernel: truncated bdev
Mar 5 13:34:35 kernel: killing bdev
Mar 5 13:34:35 kernel: syncing bdev
Mar 5 13:34:35 kernel: truncated bdev
------------------
rm -f <some archives>
------------------
Mar 5 13:35:00 system: configuration save requested by user=root
Mar 5 13:35:00 kernel: syncing bdev
Mar 5 13:35:00 kernel: syncing bdev
Mar 5 13:35:00 kernel: syncing bdev
Mar 5 13:35:00 kernel: syncing bdev
------------------
--
==============================================================
Jorge Boncompte - Ingenieria y Gestion de RED
DTI2 - Desarrollo de la Tecnologia de las Comunicaciones
--------------------------------------------------------------
C/ Abogado Enriquez Barrios, 5 14004 CORDOBA (SPAIN)
Tlf: +34 957 761395 / FAX: +34 957 450380
==============================================================
- Sin pistachos no hay Rock & Roll...
- Without wicker a basket cannot be made.
==============================================================
next prev parent reply other threads:[~2009-03-05 11:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 13:25 Error testing ext3 on brd ramdisk Adrian Hunter
2009-02-27 18:08 ` Jorge Boncompte [DTI2]
2009-02-28 5:58 ` Nick Piggin
2009-03-02 17:42 ` Jorge Boncompte [DTI2]
2009-03-05 6:55 ` Nick Piggin
2009-03-05 9:19 ` Jorge Boncompte [DTI2]
2009-03-05 9:46 ` Nick Piggin
2009-03-05 10:56 ` Jorge Boncompte [DTI2]
2009-03-05 12:12 ` Jorge Boncompte [DTI2]
2009-03-10 16:12 ` Nick Piggin
2009-03-10 16:30 ` Nick Piggin
2009-03-10 16:49 ` Jorge Boncompte [DTI2]
2009-03-11 2:19 ` Nick Piggin
2009-03-13 17:06 ` Jorge Boncompte [DTI2]
2009-03-17 9:40 ` Denis Karpov
2009-03-18 12:11 ` Nick Piggin
2009-03-18 13:42 ` Jan Kara
2009-03-20 12:24 ` Denis Karpov
2009-03-20 12:49 ` Denis Karpov
2009-03-20 12:49 ` Denis Karpov
2009-03-20 13:35 ` Denis Karpov
2009-03-05 10:45 ` Nick Piggin
2009-03-05 11:54 ` Jorge Boncompte [DTI2] [this message]
2009-03-06 7:47 ` Adrian Hunter
2009-03-10 11:03 ` 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=49AFBD79.1020008@dti2.net \
--to=jorge@dti2.net \
--cc=ext-adrian.hunter@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.