The e2mmpstatus man page claims that it will support LABEL= and UUID=
specifiers, and these days e2mmpstatus is implemented in terms of
dumpe2fs. So teach dumpe2fs to handle these specifiers so we can make
the e2mmpstatus man page be true.
https://github.com/tytso/e2fsprogs/issues/106
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
present on
.I device.
.PP
+The
+.I device
+specifier can either be a filename (i.e., /dev/sda1), or a LABEL or UUID
+specifier: "\fBLABEL=\fIvolume-label\fR" or "\fBUUID=\fIuuid\fR". (i.e.,
+LABEL=home or UUID=e40486c6-84d5-4f2f-b99c-032281799c9d).
+.PP
.B Note:
When used with a mounted file system, the printed
information may be old or inconsistent.
#include "ext2fs/kernel-jbd.h"
#include <uuid/uuid.h>
+#include "support/devname.h"
#include "support/nls-enable.h"
#include "support/plausible.h"
#include "../version.h"
if (optind != argc - 1)
usage();
- device_name = argv[optind++];
+ device_name = get_devname(NULL, argv[optind++], NULL);
+ if (!device_name) {
+ com_err(program_name, 0, _("Unable to resolve '%s'"),
+ argv[1]);
+ exit(1);
+ }
flags = EXT2_FLAG_JOURNAL_DEV_OK | EXT2_FLAG_SOFTSUPP_FEATURES |
EXT2_FLAG_64BITS | EXT2_FLAG_THREADS;
if (force)