Skip to contentSkip to conversation

udevtrigger fails to trigger partition events

PATCH Applied Michał Bartoszkiewicz 2 participants 2 messages Sep 20, 2006

lore
Share & tools
lore
#0 lore raw

Hello!

The udevtrigger program from the current git version of udev fails to trigger partition events, because of extra semicolon in the scan_block function.

udevtrigger.c +1 -1
index c5d88b9..2b4ab80 100644
@@ -321,7 +321,7 @@ static void scan_block(void)
 			strlcat(dirname, dent->d_name, sizeof(dirname));
 			if (attr_filtered(dirname))
 				continue;
-			if (device_list_insert(dirname) != 0);
+			if (device_list_insert(dirname) != 0)
 				continue;
 
 			/* look for partitions */
Signature · 14 lines
 __  ____________________________________________________________________
|  \/  |          Micha³ Bartoszkiewicz <[email protected]>          | _ )
| |\/| |                          GG:2298240                         | _ \
|_|  |_|_For all resources, whatever it is, you need more. [RFC1925]_|___/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Applied
#1 lore raw
Quoted 3 lines · MichaÅ‚ Bartoszkiewicz

The udevtrigger program from the current git version of udev fails to trigger partition events, because of extra semicolon in the scan_block function.

Oops, sorry, I messed that up. I didn't notice it, cause I'm running a kernel with the the block devices in /sys/class/block. :)

Applied to the tree.

Thanks,
Kay

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel