Date: Wed, 17 Oct 2018 16:54:14 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339414 - head/sbin/tunefs Message-ID: <201810171654.w9HGsExr052295@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810171654.w9HGsExr052295>