summaryrefslogtreecommitdiff
path: root/misc/fsck.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-11-05 18:58:46 -0500
committerTheodore Ts'o <tytso@mit.edu>2001-11-05 18:58:46 -0500
commit6430bd67cef317daebdef7812e87f0e2846b31a7 (patch)
tree0aae0c3321da29e096a328b601d8be91824f91f1 /misc/fsck.c
parente3ef3502f7b587c3d8418aff2433f3f9ffc4c0ba (diff)
downloade2fsprogs-6430bd67cef317daebdef7812e87f0e2846b31a7.tar.gz
fsck.c (interpret_type): If the "auto" type is specified, make
sure interpet_device() is called so that device specifications which use LABEL= or UUID= are translated into a real device name.
Diffstat (limited to 'misc/fsck.c')
-rw-r--r--misc/fsck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index 10cf39f7..c958bafc 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -243,6 +243,8 @@ static void interpret_type(struct fs_info *fs)
const char *type;
if (strcmp(fs->type, "auto") == 0) {
+ if (fs && strchr(fs->device, '='))
+ fs->device = interpret_device(fs->device);
type = identify_fs(fs->device);
if (type) {
free(fs->type);