public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Alexander Belyakov" <abelyako@googlemail.com>
To: "David Woodhouse" <dwmw2@infradead.org>
Cc: "Alexander Belyakov" <abelyako@mail.ru>,
	"Jörn Engel" <joern@logfs.org>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH][JFFS2] Fix garbage collector block search
Date: Wed, 23 Apr 2008 17:08:33 +0400	[thread overview]
Message-ID: <fe810cf0804230608t1183dbf4l99b168476875bfc0@mail.gmail.com> (raw)
In-Reply-To: <1208950350.9212.791.camel@pmac.infradead.org>

On Wed, Apr 23, 2008 at 3:32 PM, David Woodhouse <dwmw2@infradead.org> wrote:
>
>  I'm playing with it now, with the intent of committing it. Can you show
>  me how to reproduce the problem?
>

The most easy way to reproduce it is to fill jffs2 volume with single
large file until there is no empty space, then remove this file and
immediately try to write another file.

Something like:
---
#!/bin/sh
rm -rf /mnt/vol1/*
dd if=/dev/urandom of=/mnt/vol1/test.file bs=4096 count=32768
rm /mnt/vol1/test.file
dd if=/dev/urandom of=/mnt/vol1/test_new.file bs=2048 count=1024
-------

The bug is better reproduced on small volumes (for me it is just
4Mbytes). The first dd should exit with "No space left on device"
error to be sure no free space left. The last dd should always
succeed. If it fails - you catch the bug. Sometimes it is necessary to
run this script in several time in a row before last dd exits with an
error.

Thanks,
Alexander

  reply	other threads:[~2008-04-23 13:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12 15:51 [PATCH][JFFS2] Fix garbage collector block search Alexander Belyakov
2008-01-14 10:23 ` Alexander Belyakov
2008-01-14 13:28 ` Jörn Engel
2008-01-15 12:24   ` Alexander Belyakov
2008-01-15 13:33     ` Jörn Engel
2008-01-18 16:28       ` Alexander Belyakov
2008-02-25 12:50         ` Jörn Engel
2008-04-22 16:47         ` David Woodhouse
2008-04-23 11:31           ` Alexander Belyakov
2008-04-23 11:32             ` David Woodhouse
2008-04-23 13:08               ` Alexander Belyakov [this message]
2008-04-23 14:01                 ` David Woodhouse
2008-04-23 14:30                   ` David Woodhouse
2008-04-23 15:25                     ` Alexander Belyakov
2008-04-23 15:30                       ` David Woodhouse
2008-04-24  7:17                         ` Alexander Belyakov
2008-04-24  7:28                           ` David Woodhouse
2008-04-24  7:48                             ` Alexander Belyakov
2008-04-24  7:51                               ` David Woodhouse
2008-04-24 10:14                                 ` Alexander Belyakov
2008-04-24 10:32                                   ` David Woodhouse
2008-04-24 10:42                                     ` Alexander Belyakov
2008-04-24 11:05                                       ` David Woodhouse
2008-04-24 11:11                                         ` Jörn Engel
2008-04-24 11:21                                         ` Alexander Belyakov

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=fe810cf0804230608t1183dbf4l99b168476875bfc0@mail.gmail.com \
    --to=abelyako@googlemail.com \
    --cc=abelyako@mail.ru \
    --cc=dwmw2@infradead.org \
    --cc=joern@logfs.org \
    --cc=linux-mtd@lists.infradead.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