summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-06-04 22:01:53 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:47 -0700
commit0f36e68e8a28e02981b90a3a4712f198b58746ba (patch)
tree15617e3e18c486e9d25cfaaa534403f6f4da4e5b /test
parent84df02dd63bf53acb5a61e9db1da067760b927e9 (diff)
[PATCH] add test for ! in partition name
Diffstat (limited to 'test')
-rw-r--r--test/sys/block/cciss!c0d0/cciss!c0d0p1/dev1
-rw-r--r--test/sys/block/cciss!c0d0/cciss!c0d0p2/dev1
-rw-r--r--test/sys/block/cciss!c0d0/cciss!c0d0p5/dev1
-rw-r--r--test/sys/block/cciss!c0d0/dev1
-rw-r--r--test/udev-test.pl10
5 files changed, 14 insertions, 0 deletions
diff --git a/test/sys/block/cciss!c0d0/cciss!c0d0p1/dev b/test/sys/block/cciss!c0d0/cciss!c0d0p1/dev
new file mode 100644
index 0000000000..92c4b9b088
--- /dev/null
+++ b/test/sys/block/cciss!c0d0/cciss!c0d0p1/dev
@@ -0,0 +1 @@
+8:1
diff --git a/test/sys/block/cciss!c0d0/cciss!c0d0p2/dev b/test/sys/block/cciss!c0d0/cciss!c0d0p2/dev
new file mode 100644
index 0000000000..9799a2674a
--- /dev/null
+++ b/test/sys/block/cciss!c0d0/cciss!c0d0p2/dev
@@ -0,0 +1 @@
+8:2
diff --git a/test/sys/block/cciss!c0d0/cciss!c0d0p5/dev b/test/sys/block/cciss!c0d0/cciss!c0d0p5/dev
new file mode 100644
index 0000000000..b3d5042192
--- /dev/null
+++ b/test/sys/block/cciss!c0d0/cciss!c0d0p5/dev
@@ -0,0 +1 @@
+8:5
diff --git a/test/sys/block/cciss!c0d0/dev b/test/sys/block/cciss!c0d0/dev
new file mode 100644
index 0000000000..fae0a50572
--- /dev/null
+++ b/test/sys/block/cciss!c0d0/dev
@@ -0,0 +1 @@
+8:0
diff --git a/test/udev-test.pl b/test/udev-test.pl
index ebd3c6a8a0..1e7c51e556 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -400,6 +400,16 @@ KERNEL="ttyUSB0", NAME="visor"
EOF
},
{
+ desc => "name test with ! in the name for a partition",
+ subsys => "block",
+ devpath => "/block/cciss!c0d0/cciss!c0d0p1",
+ exp_name => "cciss/c0d0p1" ,
+ conf => <<EOF
+BUS="scsi", NAME="%k"
+KERNEL="ttyUSB0", NAME="visor"
+EOF
+ },
+ {
desc => "ID rule",
subsys => "block",
devpath => "/block/sda",