vn_fullpath() and devices
Igor Shmukler
shmukler at mail.ru
Tue Apr 26 19:44:40 PDT 2005
hello,
i reported before that vn_fullpath() does not currently deal with VCHR type of vnodes.
There is an easy solution for this:
if (vnp->v_type == VCHR) {
fullpath = vnp->v_rdev->si_name;
VOP_UNLOCK(vnp, 0, td);
len = sizeof("/dev/") + strlen(fullpath);
freepath = vdt_malloc(len);
sprintf(freepath, "/dev/%s", fullpath);
fullpath = freepath;
} else {
it this works for everyone, i could make and test a patch against whatever branch is
appropriate.
thank you,
igor
More information about the freebsd-hackers
mailing list