mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 18:53:33 +08:00
tests: fix #457
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;
This commit is contained in:
parent
ef9fde5378
commit
646048b40a
BIN
test/sys.tar.xz
BIN
test/sys.tar.xz
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user