Fix linux_ustat syscall. We only have cdevs now, so looking

for a block device isn't that useful anymore.

Reported by: Wesley Morgan <morganw@chemicals.tacorp.com>
Submitted by: gallatin
Acknowledged by: phk
This commit is contained in:
Marcel Moolenaar 2000-11-02 06:08:26 +00:00
parent 896fc61a66
commit a4e130249f

View File

@ -383,8 +383,8 @@ linux_ustat(p, uap)
* dev_t returned from previous syscalls. Just return a bzeroed
* ustat in that case.
*/
dev = makebdev(uap->dev >> 8, uap->dev & 0xFF);
if (vfinddev(dev, VBLK, &vp)) {
dev = makedev(uap->dev >> 8, uap->dev & 0xFF);
if (vfinddev(dev, VCHR, &vp)) {
if (vp->v_mount == NULL)
return (EINVAL);
stat = &(vp->v_mount->mnt_stat);