From: Theodore Ts'o Date: Mon, 5 Nov 2001 23:58:46 +0000 (-0500) Subject: fsck.c (interpret_type): If the "auto" type is specified, make X-Git-Tag: WIP-20011130~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6430bd67cef317daebdef7812e87f0e2846b31a7;p=thirdparty%2Fe2fsprogs.git 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. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index ef8b6e072..e83f21f2a 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,10 @@ +2001-11-05 Theodore Tso + + * 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. + 2001-10-12 Theodore Tso * e2image.c (output_meta_data_blocks): Optimize away excess diff --git a/misc/fsck.c b/misc/fsck.c index 10cf39f72..c958bafc1 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);