fsck.c (interpret_device): Add better error messages if a UUID= or
LABEL= specification is given.
2000-05-08 Theodore Ts'o <tytso@valinux.com>
+ * fsck.c (interpret_device): Add better error messages if a UUID=
+ or LABEL= specification is given.
+
* mke2fs.c (main): We forcibly turn off the filetype feature if
the OS is the hurd, since the hurd doesn't support it.
(And since the hurd allows the transmogrification of files
fprintf(stderr, "Is /proc mounted?\n");
exit(1);
}
- return spec;
+ /*
+ * Check to see if this is because we're not running as root
+ */
+ if (geteuid())
+ fprintf(stderr, "Must be root to scan for matching "
+ "filesystems: %s\n", spec);
+ else
+ fprintf(stderr, "Couldn't find matching filesystem: %s\n",
+ spec);
+ exit(1);
}
/*