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
This commit is contained in:
Bjoern A. Zeeb 2018-10-17 16:54:13 +00:00
parent 0696600c41
commit 69b468b9ed

View File

@ -377,7 +377,7 @@ main(int argc, char *argv[])
warnx("%s cannot be enabled until fsck is run", warnx("%s cannot be enabled until fsck is run",
name); name);
} else if (journal_alloc(Svalue) != 0) { } else if (journal_alloc(Svalue) != 0) {
warnx("%s can not be enabled", name); warnx("%s cannot be enabled", name);
} else { } else {
sblock.fs_flags |= FS_DOSOFTDEP | FS_SUJ; sblock.fs_flags |= FS_DOSOFTDEP | FS_SUJ;
warnx("%s set", name); warnx("%s set", name);
@ -966,8 +966,10 @@ journal_alloc(int64_t size)
* If the journal file exists we can't allocate it. * If the journal file exists we can't allocate it.
*/ */
ino = journal_findfile(); ino = journal_findfile();
if (ino == (ino_t)-1) if (ino == (ino_t)-1) {
warnx("journal_findfile() failed.");
return (-1); return (-1);
}
if (ino > 0) { if (ino > 0) {
warnx("Journal file %s already exists, please remove.", warnx("Journal file %s already exists, please remove.",
SUJ_FILE); SUJ_FILE);