Qid.type is defined to be equal to the top 8 bits of mode (see stat(5))
and type and dev are defined to be for kernel use (also stat(5))
which is fine if you're not in the kernel.
but what if you are? type is just the device [unicode] letter,
and dev is assigned by the device, and might be the index of an instance
(eg, #I0 has dev 0, and #I1 has dev 1).  once exported and
mounted elsewhere such distinctions vanish because the mount driver
rewrites them, more or less thoroughly (ie, in both stat and read-on-directory).

Reply via email to