All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kamala Narasimhan <kamala.narasimhan@gmail.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Gianni Tedesco <gianni.tedesco@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH] xl: Perform minimal validation of virtual disk file while parsing config file
Date: Mon, 24 Jan 2011 09:31:44 -0500	[thread overview]
Message-ID: <4D3D8D50.5090203@gmail.com> (raw)
In-Reply-To: <4D3D8A19.6020603@gmail.com>


BTW, the below patch is for checking dependencies in xl.  I should have responded to "[Xen-devel] [PATCH] xl: Check for dependencies in xl" thread instead.  I already sent the disk validation patch.

Kamala

Kamala Narasimhan wrote:
> I am resending this with tweaks though I am not sure if you plan to accept it for 4.1.  Hopefully there is no word wrapping issues etc.
> 
> Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
> 
> Kamala
> 
> 
> diff -r fe8a177ae9cb tools/libxl/libxl.c
> --- a/tools/libxl/libxl.c       Wed Jan 19 15:29:04 2011 +0000
> +++ b/tools/libxl/libxl.c       Sun Jan 23 12:42:21 2011 -0500
> @@ -40,11 +40,19 @@
> 
>  int libxl_ctx_init(libxl_ctx *ctx, int version, xentoollog_logger *lg)
>  {
> +    struct stat stat_buf;
> +
>      if (version != LIBXL_VERSION)
>          return ERROR_VERSION;
>      memset(ctx, 0, sizeof(libxl_ctx));
>      ctx->lg = lg;
>      memset(&ctx->version_info, 0, sizeof(libxl_version_info));
> +
> +    if ( stat(XENSTORE_PID_FILE, &stat_buf) != 0 ) {
> +        LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "Is xenstore daemon running?\n"
> +                     "failed to stat %s", XENSTORE_PID_FILE);
> +        return ERROR_FAIL;
> +    }
> 
>      ctx->xch = xc_interface_open(lg,lg,0);
>      if (!ctx->xch) {
> diff -r fe8a177ae9cb tools/libxl/libxl_internal.h
> --- a/tools/libxl/libxl_internal.h      Wed Jan 19 15:29:04 2011 +0000
> +++ b/tools/libxl/libxl_internal.h      Sun Jan 23 12:42:21 2011 -0500
> @@ -104,6 +104,7 @@ typedef struct {
>  #define AUTO_PHP_SLOT          0x100
>  #define SYSFS_PCI_DEV          "/sys/bus/pci/devices"
>  #define SYSFS_PCIBACK_DRIVER   "/sys/bus/pci/drivers/pciback"
> +#define XENSTORE_PID_FILE      "/var/run/xenstore.pid"
> 
>  #define PROC_PCI_NUM_RESOURCES 7
>  #define PCI_BAR_IO             0x01
> 
> 
> 

      reply	other threads:[~2011-01-24 14:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 15:35 [PATCH] xl: Perform minimal validation of virtual disk file while parsing config file Kamala Narasimhan
2011-01-14  9:05 ` Ian Campbell
2011-01-14 14:55   ` Kamala Narasimhan
2011-01-14 16:59     ` Gianni Tedesco
2011-01-14 17:17       ` Kamala Narasimhan
2011-01-19 18:09         ` Kamala Narasimhan
2011-01-19 18:26           ` Kamala Narasimhan
2011-01-20 14:04             ` Gianni Tedesco
2011-01-20 14:12               ` Gianni Tedesco
2011-01-20 15:08               ` Kamala Narasimhan
2011-01-20 15:22                 ` Gianni Tedesco
2011-01-20 15:22                 ` Kamala Narasimhan
2011-01-20 15:41               ` Kamala Narasimhan
2011-01-20 15:49               ` Ian Jackson
2011-01-20 16:46                 ` Kamala Narasimhan
2011-01-20 21:14                   ` Kamala Narasimhan
2011-01-21 12:17                     ` Ian Jackson
2011-01-21 13:27                       ` Gianni Tedesco
2011-01-22  2:33                         ` Kamala Narasimhan
2011-01-25 18:10                           ` Ian Jackson
2011-01-26  3:07                             ` Kamala Narasimhan
2011-01-26 11:43                               ` Ian Jackson
2011-01-26 18:02                                 ` Kamala Narasimhan
2011-01-26 10:27                             ` Ian Campbell
2011-01-26 11:48                               ` Ian Jackson
2011-01-26 11:54                                 ` Ian Campbell
2011-01-24 14:18                       ` Kamala Narasimhan
2011-01-24 14:31                         ` Kamala Narasimhan [this message]

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=4D3D8D50.5090203@gmail.com \
    --to=kamala.narasimhan@gmail.com \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=gianni.tedesco@citrix.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.