USB Corsair Flash Voyager and udev rules

I had some problems making my new Corsair Flash Voyager 1Gb work under udev. Until now I used the SYSFS{serial}= part from udevinfo to distinguish my usb devices. Corsair Flash Voyager doesn’t have one. So I put the following line in /etc/udev/rules.d/10-local.rules to make it work:

KERNEL="sd*", SYSFS{vendor}="Corsair", SYSFS{model}="Flash*Voyager*", NAME{all_partitions}="corsair%n", GROUP="disk"

The first partition of the usb stick is now recognized as /dev/corsair1, and if I had more they would be named /dev/corsair2, /dev/corsair3, etc

Source: http://www.void.gr/kargig/blog/2006/03/21/usb-corsair-flash-voyager-and-udev-rules/