Subject: | minor() / dev_split() fails to return correct minor number on rediculous major minor pairs |
When creating a rediculous major minor chacector special device, such as mknod -m 777 ubuffered u 999 888 the major number is correct, however the minor number is invalid.
cfaber@latitude:~$ ls -lh | grep buffer
crwxr-xr-x 1 root root 1001, 1000 Sep 27 12:17 buffer
crwxr-xr-x 1 root root 999, 888 Sep 27 12:16 ubuffer
perl -MFile::Stat::Bits -MFile::stat -e '$st = stat("buffer"); print major($st->rdev) . "\n"; print minor($st->rdev) . "\n";'
1001
3145960
perl -MFile::Stat::Bits -MFile::stat -e '$st = stat("ubuffer"); print major($st->rdev) . "\n"; print minor($st->rdev) . "\n";'
999
3145848