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:
parent
6fa8790c31
commit
84e873d43c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user