All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: mmap() on cdrom files fails in 2.6.9-rc2-mmX
Date: Thu, 30 Sep 2004 14:49:32 -0400	[thread overview]
Message-ID: <cjhjve$6bv$1@gatekeeper.tmr.com> (raw)
In-Reply-To: <20040928214246.41b80d30.khali@linux-fr.org>

Jean Delvare wrote:
> Hi all,
> 
> (Please CC me on reply, I am not subscribed to the LKML.)
> 
> I think I found a bug in 2.6.9-rc2-mm4. It doesn't seem to be able to
> mmap() files located on cdroms. Same problem with -mm3 and -mm1.
> 2.6.9-rc2 works fine. I reproduced it on two completely different
> systems, so I guess it isn't device dependant.
> 
> I tried to get mmap() to fail on other files with similar properties
> (different owner, read only) but it won't. The problem seems to affect
> only files located on cdroms.
> 
> I also tried on a loop device-mounted cdrom image, in case the problem
> was related to the iso9660 filesystem. The problem wouldn't show. It
> seems to fail only on real cdroms.
> 
> I searched the broken-out directory but wouldn't find any candidate to
> backout.

Is your mmap length a multiple of 2k? If not please resize and try 
again. There is some less traveled code when physical sector size is not 
512 bytes.

Yes, this is a wild guess, but it's easy to test if you have the kernel 
built.

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

  reply	other threads:[~2004-09-30 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 19:42 mmap() on cdrom files fails in 2.6.9-rc2-mmX Jean Delvare
2004-09-30 18:49 ` Bill Davidsen [this message]
2004-10-02  7:42 ` Andrew Morton
2004-10-02 16:48   ` Jean Delvare

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='cjhjve$6bv$1@gatekeeper.tmr.com' \
    --to=davidsen@tmr.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 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.