summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-04-13 08:52:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-04-13 08:52:48 +0200
commit1f084fe5811ce251d516a8022f8c7c27d0ef1f53 (patch)
treeee6820255a29c135a37895304e22d9bf889dc83f /test
parent236fae6cf1a619a92174efdf84cd7d91e7d4348d (diff)
remove "all_partitions" option
We can not predict the major/minor of non-existing devices: $ grep . /sys/class/block/sd*/dev /sys/class/block/sda1/dev:259:524288 /sys/class/block/sda2/dev:259:262144 /sys/class/block/sda3/dev:259:786432 /sys/class/block/sda4/dev:259:131072 /sys/class/block/sda/dev:259:0 /sys/class/block/sdb/dev:259:655360 /sys/class/block/sdc/dev:259:393216 If this functionality is still needed for some broken hardware, it needs to be solved with a tool not part of the udev package. Because such option is unreliable and unsafe to use.
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index aeca9486f7..4633d6be25 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -493,16 +493,6 @@ SUBSYSTEMS=="foo", PROGRAM=="/bin/echo -n foo-%b", SYMLINK+="%c"
EOF
},
{
- desc => "create all possible partitions",
- subsys => "block",
- devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
- exp_name => "sda15" ,
- exp_majorminor => "8:15",
- rules => <<EOF
-SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", OPTIONS="all_partitions"
-EOF
- },
- {
desc => "sysfs parent hierarchy",
subsys => "tty",
devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
@@ -988,28 +978,6 @@ SUBSYSTEMS=="scsi", PROGRAM=="/bin/echo -n node link1 link2 link3 link4", RESULT
EOF
},
{
- desc => "all_partitions, option-only rule",
- subsys => "block",
- devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
- exp_name => "node6",
- exp_rem_error => "yes",
- rules => <<EOF
-SUBSYSTEM=="block", OPTIONS="all_partitions"
-SUBSYSTEMS=="scsi", KERNEL=="sda", NAME="node"
-EOF
- },
- {
- desc => "all_partitions, option-only rule (fail on partition)",
- subsys => "block",
- devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
- exp_name => "node6",
- exp_add_error => "yes",
- rules => <<EOF
-SUBSYSTEM=="block", OPTIONS="all_partitions"
-SUBSYSTEMS=="scsi", KERNEL=="sda", NAME="node"
-EOF
- },
- {
desc => "ignore remove event test",
subsys => "block",
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
@@ -1020,17 +988,6 @@ SUBSYSTEMS=="scsi", KERNEL=="sda", SYMLINK+="node", OPTIONS="ignore_remove"
EOF
},
{
- desc => "ignore remove event test (with all partitions)",
- subsys => "block",
- devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
- exp_name => "sda14",
- exp_rem_error => "yes",
- option => "clean",
- rules => <<EOF
-SUBSYSTEMS=="scsi", KERNEL=="sda", OPTIONS="ignore_remove, all_partitions"
-EOF
- },
- {
desc => "SUBSYSTEM match test",
subsys => "block",
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",