From owner-svn-src-projects@freebsd.org Wed Aug 8 03:11:14 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41C2F1072A1E for ; Wed, 8 Aug 2018 03:11:14 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBEA18C3F7; Wed, 8 Aug 2018 03:11:13 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CD3A524C80; Wed, 8 Aug 2018 03:11:13 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w783BDLE051544; Wed, 8 Aug 2018 03:11:13 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w783BDSo051543; Wed, 8 Aug 2018 03:11:13 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201808080311.w783BDSo051543@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Wed, 8 Aug 2018 03:11:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r337444 - projects/bectl/lib/libbe X-SVN-Group: projects X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: projects/bectl/lib/libbe X-SVN-Commit-Revision: 337444 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2018 03:11:14 -0000 Author: kevans Date: Wed Aug 8 03:11:13 2018 New Revision: 337444 URL: https://svnweb.freebsd.org/changeset/base/337444 Log: Catch up on BE_ERR messages Modified: projects/bectl/lib/libbe/be_error.c Modified: projects/bectl/lib/libbe/be_error.c ============================================================================== --- projects/bectl/lib/libbe/be_error.c Wed Aug 8 02:30:34 2018 (r337443) +++ projects/bectl/lib/libbe/be_error.c Wed Aug 8 03:11:13 2018 (r337444) @@ -66,6 +66,12 @@ libbe_error_description(libbe_handle_t *lbh) case BE_ERR_DESTROYMNT: return ("cannot destroy mounted boot env unless forced"); + case BE_ERR_BADPATH: + return ("path not suitable for operation"); + + case BE_ERR_PATHBUSY: + return ("specified path is busy"); + case BE_ERR_PATHLEN: return ("provided path name exceeds maximum length limit"); @@ -86,6 +92,9 @@ libbe_error_description(libbe_handle_t *lbh) case BE_ERR_ZFSCLONE: return ("error when calling zfs_clone() to create boot env"); + + case BE_ERR_IO: + return ("input/output error"); case BE_ERR_UNKNOWN: return ("unknown error");