]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
silence "sh: 1: zfs: not found" errors on systems without ZFS
authorS.Çağlar Onur <caglar@10ur.org>
Tue, 30 Apr 2013 18:55:03 +0000 (14:55 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 30 Apr 2013 19:25:11 +0000 (14:25 -0500)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.c

index a3577a2074f32a68d31a9a38d98fb74e3142afc3..1de302f17362bd490e5dca5ea3552761ec676256 100644 (file)
@@ -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;
        }