All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <Ian.Jackson@eu.citrix.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] detect and report qemu-dm failure
Date: Thu, 12 Jun 2008 13:49:39 +0100	[thread overview]
Message-ID: <18513.7011.909975.682330@mariner.uk.xensource.com> (raw)
In-Reply-To: <20080612113333.GF1921@redhat.com>

Daniel P. Berrange writes ("Re: [Xen-devel] [PATCH] detect and report qemu-dm failure"):
> It seems rather complicated, but I can't think of a much better way to deal
> with it, so just a handful of minor nit-picks inline...

Yes, it is rather complicated.  There are slightly better ways of
doing thing kind of an event-driven way but even so the fact that xend
isn't necessarily the parent causes trouble.

Thanks for the comments; I'll resubmit shortly (and give it a more
thorough reading and search for tabs first).

> On Thu, Jun 12, 2008 at 12:23:06PM +0100, Ian Jackson wrote:
> > +	    image.cleanup_stale_sentinel_fifos()
> > +
> 
> This indentation looks wrong to me.

tab/space problem.  I should untabify it.

> > +import fcntl
> 
> This this change intended ?  You're not adding any calls to fcntl in
> this patch.

Oh, that'll be from an earlier attempt.

> > +        logfd = os.open(self.logfile, os.O_WRONLY|os.O_CREAT|os.O_TRUNC|os.O_APPEND)
> 
> Don't need to add O_APPEND, since we're truncating the file.

Not true.  We share the fd with our child, and want output to be
properly interleaved.  Without this output can sometimes be lost due
to overwriting.

> > +	sentinel_write.close()
> 
> Broken indentation here. 

tab/space damage again.

> >      def destroyDeviceModel(self):
> >          if self.device_model is None:
> >              return
> > +        self
> 
> Typo, I guess ?

That's weird.  I must have introduced that by mistake.  It has no
effect so my testing won't have spotted it.

Ian.

  reply	other threads:[~2008-06-12 12:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 11:23 [PATCH] detect and report qemu-dm failure Ian Jackson
2008-06-12 11:33 ` Daniel P. Berrange
2008-06-12 12:49   ` Ian Jackson [this message]
2008-06-12 12:51     ` Ian Jackson
2008-06-12 13:30     ` Ian Jackson
2008-06-12 14:28       ` Keir Fraser
2008-06-12 16:00         ` Ian Jackson

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=18513.7011.909975.682330@mariner.uk.xensource.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=berrange@redhat.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.