tests: fix #457
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)
commit646048b40a7b62c4e9bc59024ef6133613cda01b
tree567eef11c885d757d12145adc4289ee2e98e1439
parentef9fde5378c0b2614991f9e3c4ac525cc07736a8
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;
test/sys.tar.xz
test/udev-test.pl