From e8a3e2b1629824cb01c95e2a49b8f31152c0edd2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 7 Jan 2008 21:28:00 +1100 Subject: [PATCH] Ignore /dev/loop* devices Signed-off-by: Jeremy Kerr --- devices/udev-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/udev-helper.c b/devices/udev-helper.c index e3ad7a4..87a7fc1 100644 --- a/devices/udev-helper.c +++ b/devices/udev-helper.c @@ -430,7 +430,8 @@ static int is_removable_device(const char *sysfs_path) static int is_ignored_device(const char *devname) { - static const char *ignored_devices[] = { "/dev/ram", NULL }; + static const char *ignored_devices[] = + { "/dev/ram", "/dev/loop", NULL }; const char **dev; for (dev = ignored_devices; *dev; dev++) -- 2.39.2