[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inode's lsof.. and filenames...



On Sun, 1 Jun 2003, escii zer0for0je wrote:

> Is thier anyway to get around this, and make it so openbsd puts the entire
> filename+path in the kernel.

add another field to the vnode and fill it in.  don't know what you're
gonna do with hard linked files.

or consider:
	fd = open("foo");
	unlink("foo");
	rename("bar", "foo");
	name = sys_name_of(fd);
	printf("%s", name);

what's gonna be printed?  is it going to be correct?  of what use will the
name be?


-- 
"If you take out the killings, Washington actually has a very very
low crime rate."
      - M. Barry, Mayor of Washington, DC