Date: Wed, 27 Apr 2005 06:44:37 +0400 From: Igor Shmukler <shmukler@mail.ru> To: hackers@freebsd.org Cc: rwatson@freebsd.org Subject: vn_fullpath() and devices Message-ID: <E1DQcXV-0005rT-00.shmukler-mail-ru@f40.mail.ru>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1DQcXV-0005rT-00.shmukler-mail-ru>
