mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Cédric Augonnet" <cedric.augonnet@gmail.com>
To: "Daniel Aragonés" <danarag@gmail.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Cedric.augonnet@ens-lyon.org
Subject: Re: 2.6.20-mm1 - Oops using Minix 3 file system
Date: Sat, 17 Feb 2007 14:51:41 +0100	[thread overview]
Message-ID: <f56c1ba00702170551k7cbbf79dkfc550e3d4b387d4c@mail.gmail.com> (raw)
In-Reply-To: <edd3ff190702170255w1c30fa08v96e5b92baacbd701@mail.gmail.com>

2007/2/17, Daniel Aragonés <danarag@gmail.com>:
>  Well, a glance at your dmesg doesn' show that a minix partition was
> recognized. Otherwise it would sow it. So you have not such a
> partition within your drives.
>
> You are using an emulator to run minix. You will have the same problem
> if you run minix2 or minix3 through an emulator and not from a real
> minix2 or minix3 partition.
>
> Regards,
>
> Daniel
>

Indeed the only line of dmesg showing i mounted the partition is
   loop: loaded (max 8 devices)

Still I actually mount an image : i can add files, edit and so on. If
i use the emulator and mount the partition, this partition works
perfectly and even the df commands works.

Now i tried to understand what is going on and traced the program :

It appears that the trouble is in  the count_free of file
fs/minix/bitmap.c . This procedure is actually called twice when we
issue a df command.
The point where things start to get strange is
        i = ((numbits - (numblocks-1) * bh->b_size * 8) / 16) * 2; at line 36

In the first call to that procedure i have
       i = 3506
       bh->b_data = 0xd4e79000

Whereas in the second call i have something much different :
       i = 536838736
       bh->b_data = d4e78000

Tt really seems to me that this value should not be so large.
Unfortunately, i cannot get any deeper in tracing the problem since
even if i tried to read the code, it not documented, so i can't be
sure I understand everything you're doing in count_free ...

Regards,
Cédric

  reply	other threads:[~2007-02-17 13:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 23:00 Cédric Augonnet
2007-02-17 10:55 ` Daniel Aragonés
2007-02-17 13:51   ` Cédric Augonnet [this message]
2007-02-17 16:44     ` Daniel Aragonés
2007-02-17 17:53       ` Cédric Augonnet
2007-02-17 18:49         ` Daniel Aragonés
2007-02-17 19:40 ` Bill Davidsen
2007-02-17 20:01   ` Cédric Augonnet
2007-02-18 10:42     ` Cédric Augonnet

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=f56c1ba00702170551k7cbbf79dkfc550e3d4b387d4c@mail.gmail.com \
    --to=cedric.augonnet@gmail.com \
    --cc=Cedric.augonnet@ens-lyon.org \
    --cc=akpm@linux-foundation.org \
    --cc=danarag@gmail.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®