[PATCH] change devfs disk name rule from 'disk' to 'disc'
This commit is contained in:
parent
26004fcc66
commit
525d07e78e
|
@ -223,7 +223,7 @@ static void apply_format(struct udevice *udev, unsigned char *string)
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
if (strlen(udev->kernel_number) == 0) {
|
if (strlen(udev->kernel_number) == 0) {
|
||||||
strcat(pos, "disk");
|
strcat(pos, "disc");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
strcat(pos, "part");
|
strcat(pos, "part");
|
||||||
|
|
|
@ -156,7 +156,7 @@ EOF
|
||||||
desc => "devfs disk naming substitution",
|
desc => "devfs disk naming substitution",
|
||||||
subsys => "block",
|
subsys => "block",
|
||||||
devpath => "block/sda",
|
devpath => "block/sda",
|
||||||
expected => "lun0/disk" ,
|
expected => "lun0/disc" ,
|
||||||
conf => <<EOF
|
conf => <<EOF
|
||||||
LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="lun0/%D"
|
LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="lun0/%D"
|
||||||
EOF
|
EOF
|
||||||
|
|
2
udev.8
2
udev.8
|
@ -158,7 +158,7 @@ The CALLOUT program returned string.
|
||||||
.B %D
|
.B %D
|
||||||
Use the devfs style disk name for this device.
|
Use the devfs style disk name for this device.
|
||||||
For partitions, this will result in 'part%n'
|
For partitions, this will result in 'part%n'
|
||||||
If this is not a partition, it will result in 'disk'.
|
If this is not a partition, it will result in 'disc'.
|
||||||
.P
|
.P
|
||||||
.RI "A sample " udev.rules " might look like this:"
|
.RI "A sample " udev.rules " might look like this:"
|
||||||
.sp
|
.sp
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# the PROGRAM field for the obvious reason.)
|
# the PROGRAM field for the obvious reason.)
|
||||||
# %D - use the devfs style disk name for this device.
|
# %D - use the devfs style disk name for this device.
|
||||||
# For partitions, this will result in 'part%n'
|
# For partitions, this will result in 'part%n'
|
||||||
# If this is not a partition, it will result in 'disk'
|
# If this is not a partition, it will result in 'disc'
|
||||||
#
|
#
|
||||||
|
|
||||||
# Looking for scsi bus id 42:0:0:1
|
# Looking for scsi bus id 42:0:0:1
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# the PROGRAM field for the obvious reason.)
|
# the PROGRAM field for the obvious reason.)
|
||||||
# %D - use the devfs style disk name for this device.
|
# %D - use the devfs style disk name for this device.
|
||||||
# For partitions, this will result in 'part%n'
|
# For partitions, this will result in 'part%n'
|
||||||
# If this is not a partition, it will result in 'disk'
|
# If this is not a partition, it will result in 'disc'
|
||||||
#
|
#
|
||||||
|
|
||||||
# ide block devices
|
# ide block devices
|
||||||
|
|
Loading…
Reference in New Issue