From: "Toralf Förster" <toralf.foerster@gmx.de>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: UML devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works
Date: Fri, 21 Nov 2014 14:32:13 +0100 [thread overview]
Message-ID: <546F3EDD.1000007@gmx.de> (raw)
In-Reply-To: <CAFLxGvzYBRM3gos1OwkPfihCc_GPUuPs=Quu42rBd6NnrfFKEQ@mail.gmail.com>
On 11/19/2014 10:13 PM, Richard Weinberger wrote:
>> console [mc-1] enabled
>> > Failed to initialize ubd device 0 :Couldn't determine size of device's file
> This is ubd_file_size(). Can you find out where exactly it is failing?
> Just add a few printk()s into it.
Did it:
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index e8ab93c..22390f9 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -508,19 +508,25 @@ static inline int ubd_file_size(struct ubd *ubd_dev, __u64 *size_out)
int sector_size;
int bitmap_offset;
+printk(KERN_INFO "ubd_file_size 0");
if (ubd_dev->file && ubd_dev->cow.file) {
file = ubd_dev->cow.file;
+printk(KERN_INFO "ubd_file_size 1");
goto out;
}
fd = os_open_file(ubd_dev->file, of_read(OPENFLAGS()), 0);
+printk(KERN_INFO "ubd_file_size 2");
if (fd < 0)
return fd;
+printk(KERN_INFO "ubd_file_size 3");
err = read_cow_header(file_reader, &fd, &version, &backing_file, \
&mtime, &size, §or_size, &align, &bitmap_offset);
os_close_file(fd);
+printk(KERN_INFO "ubd_file_size 4, err=%i", err);
if(err == -EINVAL)
file = ubd_dev->file;
but no result so far (did the issue knows that I do observe him ???). I might test if this happens at the first time the UML image file is mounted using a loop device (after reboot of the host).
--
Toralf
pgp key: 0076 E94E
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
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:[~2014-11-21 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 17:06 [uml-devel] starting an UML image sometimes failed, next (identical) attempt works Toralf Förster
2014-11-19 17:25 ` Anton Ivanov
2014-11-19 21:13 ` Richard Weinberger
2014-11-21 13:32 ` Toralf Förster [this message]
2014-11-21 14:20 ` Geert Uytterhoeven
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=546F3EDD.1000007@gmx.de \
--to=toralf.foerster@gmx.de \
--cc=richard.weinberger@gmail.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 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.