Skip to content

Commit

Permalink
tests: fix systemd#457
Browse files Browse the repository at this point in the history
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;
  • Loading branch information
evverx committed Feb 8, 2016
1 parent ef9fde5 commit 646048b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified test/sys.tar.xz
Binary file not shown.
4 changes: 2 additions & 2 deletions test/udev-test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@
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
Expand All @@ -709,7 +709,7 @@
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
Expand Down

0 comments on commit 646048b

Please sign in to comment.