[lxc-devel] [PATCH 1/3] silence "sh: 1: zfs: not found" errors on systems without ZFS
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Apr 30 19:05:00 UTC 2013
Quoting S.Çağlar Onur (caglar at 10ur.org):
> Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
thanks.
> ---
> src/lxc/bdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
> index a3577a2..1de302f 100644
> --- a/src/lxc/bdev.c
> +++ b/src/lxc/bdev.c
> @@ -440,7 +440,7 @@ static int zfs_list_entry(const char *path, char *output)
> FILE *f;
> int found=0;
>
> - if ((f = popen("zfs list", "r")) == NULL) {
> + if ((f = popen("zfs list 2> /dev/null", "r")) == NULL) {
> SYSERROR("popen failed");
> return 0;
> }
> --
> 1.8.1.2
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list