_cache_load("/dev/sd*");
_cache_load("/dev/sdc*");
_cache_load("/dev/hd*");
+ _cache_load("/dev/md*");
+ _cache_load("/dev/mapper/*");
}
static int print_block_info(struct blkid_struct_probe *pr)
static int mount_device(struct blkid_struct_probe *pr, int hotplug)
{
struct mount *m;
- char *device = basename(pr->dev);
+ char *device;
if (!pr)
return -1;
+ device = basename(pr->dev);
+
if (!strcmp(pr->id->name, "swap")) {
if (hotplug && !auto_swap)
return -1;