diff options
author | Eric Sandeen <sandeen@redhat.com> | 2010-04-01 14:26:30 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-05-12 12:54:12 -0400 |
commit | 1bb14a22b5ea31ce4b9b5d9d8c7e75f02fad77ee (patch) | |
tree | 41f6491578b1e30baa3b2e51b04ac051faca13df /misc/util.c | |
parent | 5fa92bc76888404b161b3fd0fd7e6b63e064badf (diff) | |
download | e2fsprogs-1bb14a22b5ea31ce4b9b5d9d8c7e75f02fad77ee.tar.gz |
mke2fs: be explicit if external journal device is not found
This for RH bug #572935 -
RFE: Misleading error message from mke2fs -J option
If the journal device UUID is typo'd or otherwise not found,
the error message looks like it's a usage() type of problem.
It'd be helpful to explicitly say that the device requested
could not be found.
Addresses-Red-Hat-Bug: #572935
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/util.c')
-rw-r--r-- | misc/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/util.c b/misc/util.c index 837d60fc..28979372 100644 --- a/misc/util.c +++ b/misc/util.c @@ -207,6 +207,10 @@ void parse_journal_opts(const char *opts) if (strcmp(token, "device") == 0) { journal_device = blkid_get_devname(NULL, arg, NULL); if (!journal_device) { + if (arg) + fprintf(stderr, _("\nCould not find " + "journal device matching %s\n"), + arg); journal_usage++; continue; } |