On Wed, 06 Jul 2016 15:28:33 +0200, Marc Espie wrote:

> Note: it seems strange to have extra checks for VT_CHAR... in tmpfs_mknod
> as well. These should be fs-independent ?...

Do you mean this?

        if (vt != VBLK && vt != VCHR && vt != VFIFO) {
                vput(dvp);
                return EINVAL;
        }

It is possible for the per-fs mknod function to be called with vt
== VBAD for badsect(8).  Only ffs actually support that.

 - todd

Reply via email to