Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 17:55:45 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Shared files within a jail
Message-ID:  <3DD302A1.2187A86D@mindspring.com>
References:  <20021113030847.69266.qmail@web12801.mail.yahoo.com> <20021113112325.GK590@garage.freebsd.pl> <3DD2E016.7862490@mindspring.com> <20021113234904.GM590@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Jakub Dawidek wrote:
> On Wed, Nov 13, 2002 at 03:28:22PM -0800, Terry Lambert wrote:
> +> Don't worry about it.  It's only a problem for mmap'ed files
> +> which are also read/written.  Sheesh.
> 
> I have found one little bug in nullfs. I've send it some time ago
> to hackers@, but without any respond.

__getcwd(2) doesn't work like you think it works.

It works by looking up things in the directory name cache.

It's perfectly acceptable for it to fail.

This is why you are supposed t use getcwd(3), instead, which
can recover if the system call fails.

Realize that directories do not have necessarily valid parent
pointers hanging around.

By overloading the lookup cache, I can cause your program to
fail on NFS, as well,  You just aren't waving the right dead
chicken in your test case.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD302A1.2187A86D>