summaryrefslogtreecommitdiffstats
path: root/fsck/fsck.c
diff options
context:
space:
mode:
authorKarel Zak2010-10-07 09:26:37 +0200
committerKarel Zak2010-10-07 09:26:37 +0200
commit236acf2d27b8f6e1de11f0fb35c78756837a6700 (patch)
tree10fc6c40c41ea2aab790023f234e7547010a195b /fsck/fsck.c
parentlibblkid: add searching in attributes dir to BeFS (diff)
downloadkernel-qcow2-util-linux-236acf2d27b8f6e1de11f0fb35c78756837a6700.tar.gz
kernel-qcow2-util-linux-236acf2d27b8f6e1de11f0fb35c78756837a6700.tar.xz
kernel-qcow2-util-linux-236acf2d27b8f6e1de11f0fb35c78756837a6700.zip
fsck: inform about nonexistent devices in verbose mode
Reported-by: Serafeim Zanikolas <sez@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fsck/fsck.c')
-rw-r--r--fsck/fsck.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/fsck/fsck.c b/fsck/fsck.c
index e7526f9e6..7e1608f9e 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -887,10 +887,17 @@ static int ignore(struct fs_info *fs)
/*
* ignore devices that don't exist and have the "nofail" mount option
*/
- if (!device_exists(fs->device) && opt_in_list("nofail", fs->opts)) {
+ if (!device_exists(fs->device)) {
+ if (opt_in_list("nofail", fs->opts)) {
+ if (verbose)
+ printf(_("%s: skipping nonexistent device\n"),
+ fs->device);
+ return 1;
+ }
if (verbose)
- printf(_("%s: skipping nonexistent device\n"), fs->device);
- return 1;
+ printf(_("%s: nonexistent device (\"nofail\" fstab "
+ "option may be used to skip this device)\n"),
+ fs->device);
}
interpret_type(fs);