]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: fix #457 2550/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 8 Feb 2016 11:18:19 +0000 (11:18 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 8 Feb 2016 11:23:18 +0000 (11:23 +0000)
There are some limits on XFS:
major_max=511
minor_max=262143
see https://github.com/torvalds/linux/blob/master/fs/xfs/xfs_iops.c

if (S_ISCHR(mode) || S_ISBLK(mode)) {
    if (unlikely(!sysv_valid_dev(rdev) || MAJOR(rdev) & ~0x1ff))
        return -EINVAL;

test/sys.tar.xz
test/udev-test.pl

index 49ee8027b2e1cba42a8312d56de4bb65d4a2d470..052c77d182a2eba730d3aeaf52b1ab90d937f006 100644 (file)
Binary files a/test/sys.tar.xz and b/test/sys.tar.xz differ
index 0a8930357005749ad209654596dab3ea8617e7b7..638c3e8f4e211e75e860bd78c12c163548e7d10e 100755 (executable)
@@ -700,7 +700,7 @@ EOF
                 desc            => "big major number test",
                 devpath         => "/devices/virtual/misc/misc-fake1",
                 exp_name        => "node",
-                exp_majorminor  => "4095:1",
+                exp_majorminor  => "511:1",
                 rules                => <<EOF
 KERNEL=="misc-fake1", SYMLINK+="node"
 EOF
@@ -709,7 +709,7 @@ EOF
                 desc            => "big major and big minor number test",
                 devpath         => "/devices/virtual/misc/misc-fake89999",
                 exp_name        => "node",
-                exp_majorminor  => "4095:89999",
+                exp_majorminor  => "511:89999",
                 rules           => <<EOF
 KERNEL=="misc-fake89999", SYMLINK+="node"
 EOF