aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2018-10-17 16:54:13 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2018-10-17 16:54:13 +0000
commit69b468b9ed3c8b576174389c82b7d7080fd9132b (patch)
treef85c2770ca59f39e0e6727ab68dd575eed6acd2d
parent0696600c41600d80bcd993bfd8e675d0ae6951fe (diff)
downloadsrc-69b468b9ed3c8b576174389c82b7d7080fd9132b.tar.gz
src-69b468b9ed3c8b576174389c82b7d7080fd9132b.zip
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
Notes
Notes: svn path=/head/; revision=339414
-rw-r--r--sbin/tunefs/tunefs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index e3d972bceb57..ef27b60f6bef 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -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);