From owner-svn-src-head@freebsd.org Wed Oct 17 16:54:14 2018 Return-Path: Delivered-To: svn-src-head@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 A05E610DA065; Wed, 17 Oct 2018 16:54:14 +0000 (UTC) (envelope-from bz@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 5135C86C9A; Wed, 17 Oct 2018 16:54:14 +0000 (UTC) (envelope-from bz@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 4BC946476; Wed, 17 Oct 2018 16:54:14 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9HGsEZG052296; Wed, 17 Oct 2018 16:54:14 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9HGsExr052295; Wed, 17 Oct 2018 16:54:14 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201810171654.w9HGsExr052295@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Wed, 17 Oct 2018 16:54:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339414 - head/sbin/tunefs X-SVN-Group: head X-SVN-Commit-Author: bz X-SVN-Commit-Paths: head/sbin/tunefs X-SVN-Commit-Revision: 339414 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2018 16:54:14 -0000 Author: bz Date: Wed Oct 17 16:54:13 2018 New Revision: 339414 URL: https://svnweb.freebsd.org/changeset/base/339414 Log: Fix spelling of an error message and add warning to another error case in tunefs(8). Reviewed by: imp (2017 version of the same diff) Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D10046 Modified: head/sbin/tunefs/tunefs.c Modified: head/sbin/tunefs/tunefs.c ============================================================================== --- head/sbin/tunefs/tunefs.c Wed Oct 17 16:49:11 2018 (r339413) +++ head/sbin/tunefs/tunefs.c Wed Oct 17 16:54:13 2018 (r339414) @@ -377,7 +377,7 @@ main(int argc, char *argv[]) warnx("%s cannot be enabled until fsck is run", name); } else if (journal_alloc(Svalue) != 0) { - warnx("%s can not be enabled", name); + warnx("%s cannot be enabled", name); } else { sblock.fs_flags |= FS_DOSOFTDEP | FS_SUJ; warnx("%s set", name); @@ -966,8 +966,10 @@ journal_alloc(int64_t size) * If the journal file exists we can't allocate it. */ ino = journal_findfile(); - if (ino == (ino_t)-1) + if (ino == (ino_t)-1) { + warnx("journal_findfile() failed."); return (-1); + } if (ino > 0) { warnx("Journal file %s already exists, please remove.", SUJ_FILE);