mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[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;
|
||||
case 'D':
|
||||
if (strlen(udev->kernel_number) == 0) {
|
||||
strcat(pos, "disk");
|
||||
strcat(pos, "disc");
|
||||
break;
|
||||
}
|
||||
strcat(pos, "part");
|
||||
|
@ -156,7 +156,7 @@ EOF
|
||||
desc => "devfs disk naming substitution",
|
||||
subsys => "block",
|
||||
devpath => "block/sda",
|
||||
expected => "lun0/disk" ,
|
||||
expected => "lun0/disc" ,
|
||||
conf => <<EOF
|
||||
LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="lun0/%D"
|
||||
EOF
|
||||
|
2
udev.8
2
udev.8
@ -158,7 +158,7 @@ The CALLOUT program returned string.
|
||||
.B %D
|
||||
Use the devfs style disk name for this device.
|
||||
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
|
||||
.RI "A sample " udev.rules " might look like this:"
|
||||
.sp
|
||||
|
@ -9,7 +9,7 @@
|
||||
# the PROGRAM field for the obvious reason.)
|
||||
# %D - use the devfs style disk name for this device.
|
||||
# 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
|
||||
|
@ -13,7 +13,7 @@
|
||||
# the PROGRAM field for the obvious reason.)
|
||||
# %D - use the devfs style disk name for this device.
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user