fsck -A output does not indicate the offending device(s), when a device is nonexistent and declared without nofail (e2fsck doesn't mention anything, and dosfsck outputs just "No such file or directory") Signed-off-by: Serafeim Zanikolas <sez@xxxxxxxxxx> --- fsck/fsck.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index e7526f9..eb378bc 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -1077,6 +1077,11 @@ static int check_all(NOARGS) pass_done = 0; continue; } + if ((!device_exists(fs->device)) && + (!opt_in_list("nofail", fs->opts))) + fprintf(stderr, + _("%s: device nonexistent and declared without nofail\n"), + fs->device); /* * Spawn off the fsck process */ -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html