From: Oleg Drokin <green@linuxhacker.ru>
To: jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Kernel panic: I/O op mismatch
Date: Thu, 11 Sep 2003 18:13:50 +0400 [thread overview]
Message-ID: <200309111413.h8BEDnvF019619@car.linuxhacker.ru> (raw)
In-Reply-To: 200309111228.h8BCSOu9010164@car.linuxhacker.ru
Hello!
Oleg Drokin <green@linuxhacker.ru> wrote:
OD> Hello!
OD> David Coulson <david@davidcoulson.net> wrote:
>>> Host filesystem or UML filesystem? Adam and I were both using ext2 inside
>>> UML when we spoke, and I'm using ext3 on the host side.
DC>> Sorry, filesystem was the wrong word to use - 'image file' is more accurate.
OD> That's how I reproduce it:
Ok, so the problem is a missed cast.
And the patch is below.
Bye,
Oleg
--- arch/um/drivers/ubd_kern.c.orig 2003-09-11 16:49:48.000000000 +0400
+++ arch/um/drivers/ubd_kern.c 2003-09-11 18:12:10.861689280 +0400
@@ -1002,7 +1002,7 @@
}
req->sector += ubd_part[minor].start_sect;
- offset = req->sector << 9;
+ offset = (__u64)req->sector << 9;
len = req->current_nr_sectors << 9;
io_req->fds[0] = (dev->cow.file != NULL) ? dev->cow.fd : dev->fd;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2003-09-11 14:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-06 1:52 [uml-devel] Kernel panic: I/O op mismatch David Coulson
2003-09-09 0:38 ` Adam Heath
2003-09-09 0:48 ` David Coulson
2003-09-09 13:10 ` Jeff Dike
2003-09-09 13:16 ` David Coulson
2003-09-09 15:52 ` Jeff Dike
2003-09-09 16:41 ` Matt Zimmerman
2003-09-09 16:53 ` David Coulson
2003-09-09 17:08 ` Matt Zimmerman
2003-09-09 20:05 ` David Coulson
2003-09-11 12:28 ` Oleg Drokin
2003-09-11 14:13 ` Oleg Drokin [this message]
2003-09-09 20:32 ` Adam Heath
-- strict thread matches above, loose matches on Subject: below --
2003-09-10 12:49 Vincent
2003-09-10 13:02 ` David Coulson
[not found] ` <58934.202.181.236.220.1063643369.squirrel@secure.yoric.net>
2003-09-15 17:14 ` David Coulson
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=200309111413.h8BEDnvF019619@car.linuxhacker.ru \
--to=green@linuxhacker.ru \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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