]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fsck.c (interpret_type): If the "auto" type is specified, make
authorTheodore Ts'o <tytso@mit.edu>
Mon, 5 Nov 2001 23:58:46 +0000 (18:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 5 Nov 2001 23:58:46 +0000 (18:58 -0500)
sure interpet_device() is called so that device
specifications which use LABEL= or UUID= are translated
into a real device name.

misc/ChangeLog
misc/fsck.c

index ef8b6e0725895edeeca02f0dcb8dc75d8c6809d6..e83f21f2a889a15ef50a6e965fd5884563023c9e 100644 (file)
@@ -1,3 +1,10 @@
+2001-11-05  Theodore Tso  <tytso@valinux.com>
+
+       * 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  <tytso@valinux.com>
 
        * e2image.c (output_meta_data_blocks): Optimize away excess
index 10cf39f72e20d3ac8e5dacff6b713c9b08e0bb09..c958bafc11b2cdbdb3d15fe11296b81f829395d8 100644 (file)
@@ -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);