Commit 45885d13 authored by Alexandre Julliard's avatar Alexandre Julliard

In parse_mount_entries return the loop device instead of the mounted

file for loop mounts.
parent d2e5469b
......@@ -268,6 +268,16 @@ static char *parse_mount_entries( FILE *f, dev_t dev, ino_t ino )
return device + 4;
}
}
else if (!stat( entry->mnt_fsname, &st ) && S_ISREG(st.st_mode))
{
/* if device is a regular file check for a loop mount */
if ((device = strstr( entry->mnt_opts, "loop=" )))
{
char *p = strchr( device + 5, ',' );
if (p) *p = 0;
return device + 5;
}
}
else
return entry->mnt_fsname;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment