From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Pat Campbell <plc@novell.com>
Subject: Re: [PATCH][ioemu] strip tap subtype prefix from image name
Date: Wed, 30 Jan 2008 14:07:50 +0100 [thread overview]
Message-ID: <200801301407.51163.Christoph.Egger@amd.com> (raw)
In-Reply-To: <47A07434.1060900@novell.com>
On Wednesday 30 January 2008 13:57:24 Pat Campbell wrote:
> Currently I am not able to mount or boot from an HVM CDROM when it is
> configured for 'tap:aio' instead of 'file'.
>
> disk=[ 'tap:aio:/var/lib/xen/images/sles10-sp2-fv/disk0,hda,w', '
> tap:aio:/home/iso/sles/SLES10.iso,hdc:cdrom,r', ]
>
> With the attached patch I am able to boot from the CDROM and or mount it.
>
> Patch changes xenstore.c:xenstore_process_event() to strip the tap subtype
> prefix from the image name.
>
> Please apply to xen-unstable tip.
>
> Signed-off-by: Pat Campbell <plc@novell.com>
Please use a more readable coding style.
What you did is this:
if (a) {
if (b) {
if (c) {
/* do it */
} else {
/* Alternative C */
}
} else {
/* Alternative B */
}
} else {
/* Alternative A */
}
return;
I suggest you to use this style:
if (!a) {
/* Alternative A */
return;
}
if (!b) {
/* Alternative B */
return;
}
if (!c) {
/* Alternative C */
return;
}
/* do it */
return;
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2008-01-30 13:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 12:57 [PATCH][ioemu] strip tap subtype prefix from image name Pat Campbell
2008-01-30 13:07 ` Christoph Egger [this message]
2008-01-30 13:16 ` Keir Fraser
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=200801301407.51163.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=plc@novell.com \
--cc=xen-devel@lists.xensource.com \
/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.