# ID:	greg@kroah.com|ChangeSet|20030410173830|44862|5a456b78236181c4
# User:	greg
# Host:	kroah.com
# Root:	/home/greg/src/udev

# Patch vers:	1.3
# Patch type:	REGULAR

== ChangeSet ==
greg@kroah.com|ChangeSet|20030410173830|44862|5a456b78236181c4
azarah@nosferatu.za.org|ChangeSet|20031124232506|59853
D 1.225 03/11/24 15:40:43-08:00 arnd@arndb.de +1 -0
B greg@kroah.com|ChangeSet|20030410173830|44862|5a456b78236181c4
C
c [PATCH] Add format modifier for devfs like naming
c 
c On Monday 24 November 2003 01:29, Greg KH wrote:
c > I think with the ability to capture the output of the CALLOUT rule,
c > combined with the ability to put format modifiers in the CALLOUT program
c > string, we now have everything in place to emulate the existing devfs
c > naming scheme.  Anyone want to verify this or not?
c 
c I would prefer to have the ability of creating partition nodes in devfs
c style built-in to udev. Devfs used to call the whole disk e.g.
c "/dev/dasd/0123/disk" and the partitions "/dev/dasd/0123/part[1-3]".
c This can obviously be done with a CALLOUT rule, but its common enough
c to make it a format modifier. AFAIK, this scheme has been used for
c ide, scsi and dasd disks, which is about 99% of all disks ever connected
c to Linux.
c 
c One thing that does not appear to be possible with udev but was common
c with devfs is to have multiple links for the same device node, e.g.
c /dev/hda1 as well as /dev/ide/host0/bus0/target0/lun0/part1 and
c /dev/disk/0/part1.
K 58783
P ChangeSet
------------------------------------------------

0a0
> greg@kroah.com|namedev.c|20030717002450|11594|a4fa941321b06ff8 arnd@arndb.de[greg]|namedev.c|20031124234042|55342

== namedev.c ==
greg@kroah.com|namedev.c|20030717002450|11594|a4fa941321b06ff8
azarah@nosferatu.za.org[greg]|namedev.c|20031124232504|37804
D 1.49 03/11/23 20:01:10-08:00 arnd@arndb.de[greg] +9 -0
B greg@kroah.com|ChangeSet|20030410173830|44862|5a456b78236181c4
C
c Add format modifier for devfs like naming
F 70772
K 55342
O -rw-rw-r--
P namedev.c
------------------------------------------------

I529 9
			case 'D':
				if (strlen(udev->kernel_number) == 0) {
					strcat(pos, "disk");
					break;
				}
				strcat(pos, "part");
				strcat(pos, udev->kernel_number);
				dbg("substitute kernel number '%s'", udev->kernel_number);
				break;

# Patch checksum=39b2a279
