Re: svn commit: r276008 - in head/sys: kern sys

2014-12-23 Thread Andriy Gapon
On 23/12/2014 11:46, Konstantin Belousov wrote: > On Tue, Dec 23, 2014 at 10:18:43AM +0200, Andriy Gapon wrote: >> Hmm, I mean that given this code: >> >> flags = O_CREAT | FWRITE | O_NOFOLLOW; >> NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, name, td); >> error = vn_open_cred

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-23 Thread Konstantin Belousov
On Tue, Dec 23, 2014 at 10:18:43AM +0200, Andriy Gapon wrote: > On 23/12/2014 09:55, Rui Paulo wrote: > > On Dec 22, 2014, at 23:03, Andriy Gapon wrote: > >> > >> On 23/12/2014 04:39, Rui Paulo wrote: > >>> On Dec 22, 2014, at 11:17, John Baldwin wrote: > > On Monday, December 22, 2014

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-23 Thread Andriy Gapon
On 23/12/2014 09:55, Rui Paulo wrote: > On Dec 22, 2014, at 23:03, Andriy Gapon wrote: >> >> On 23/12/2014 04:39, Rui Paulo wrote: >>> On Dec 22, 2014, at 11:17, John Baldwin wrote: On Monday, December 22, 2014 1:29:38 pm Rui Paulo wrote: > On Dec 22, 2014, at 06:40, John Baldwin w

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Rui Paulo
On Dec 22, 2014, at 23:03, Andriy Gapon wrote: > > On 23/12/2014 04:39, Rui Paulo wrote: >> On Dec 22, 2014, at 11:17, John Baldwin wrote: >>> >>> On Monday, December 22, 2014 1:29:38 pm Rui Paulo wrote: On Dec 22, 2014, at 06:40, John Baldwin wrote: > Is there something specific to c

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Andriy Gapon
On 23/12/2014 04:39, Rui Paulo wrote: > On Dec 22, 2014, at 11:17, John Baldwin wrote: >> >> On Monday, December 22, 2014 1:29:38 pm Rui Paulo wrote: >>> On Dec 22, 2014, at 06:40, John Baldwin wrote: Is there something specific to core dumps that makes vn_fullpath() more useful to have

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Rui Paulo
On Dec 22, 2014, at 11:17, John Baldwin wrote: > > On Monday, December 22, 2014 1:29:38 pm Rui Paulo wrote: >> On Dec 22, 2014, at 06:40, John Baldwin wrote: >>> Is there something specific to core dumps that makes vn_fullpath() more >>> useful to have working before a process tries to open the

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread John Baldwin
On Monday, December 22, 2014 1:29:38 pm Rui Paulo wrote: > On Dec 22, 2014, at 06:40, John Baldwin wrote: > > Is there something specific to core dumps that makes vn_fullpath() more > > useful to have working before a process tries to open the core? (As > > compared to other newly-created files)

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Adrian Chadd
On 22 December 2014 at 09:28, Konstantin Belousov wrote: > On Mon, Dec 22, 2014 at 09:40:02AM -0500, John Baldwin wrote: >> On Sunday, December 21, 2014 11:21:17 am Andriy Gapon wrote: >> > On 21/12/2014 17:14, Konstantin Belousov wrote: >> > > On Sun, Dec 21, 2014 at 04:45:28PM +0200, Andriy Gapo

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Rui Paulo
On Dec 22, 2014, at 06:40, John Baldwin wrote: > Is there something specific to core dumps that makes vn_fullpath() more > useful to have working before a process tries to open the core? (As > compared to other newly-created files) Yes: the ability to provide the full path to userland when a cor

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread Konstantin Belousov
On Mon, Dec 22, 2014 at 09:40:02AM -0500, John Baldwin wrote: > On Sunday, December 21, 2014 11:21:17 am Andriy Gapon wrote: > > On 21/12/2014 17:14, Konstantin Belousov wrote: > > > On Sun, Dec 21, 2014 at 04:45:28PM +0200, Andriy Gapon wrote: > > >> On 21/12/2014 16:41, Konstantin Belousov wrote:

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-22 Thread John Baldwin
On Sunday, December 21, 2014 11:21:17 am Andriy Gapon wrote: > On 21/12/2014 17:14, Konstantin Belousov wrote: > > On Sun, Dec 21, 2014 at 04:45:28PM +0200, Andriy Gapon wrote: > >> On 21/12/2014 16:41, Konstantin Belousov wrote: > >>> Or, are you asking why caching of the name could be needed for

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-21 Thread Andriy Gapon
On 21/12/2014 17:14, Konstantin Belousov wrote: > On Sun, Dec 21, 2014 at 04:45:28PM +0200, Andriy Gapon wrote: >> On 21/12/2014 16:41, Konstantin Belousov wrote: >>> Or, are you asking why caching of the name could be needed for >>> core dump files at all ? >> >> Sort of. Why VN_OPEN_NAMECACHE is

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-21 Thread Konstantin Belousov
On Sun, Dec 21, 2014 at 04:45:28PM +0200, Andriy Gapon wrote: > On 21/12/2014 16:41, Konstantin Belousov wrote: > > Or, are you asking why caching of the name could be needed for > > core dump files at all ? > > Sort of. Why VN_OPEN_NAMECACHE is useful in the case of core dumps? > What does it mak

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-21 Thread Andriy Gapon
On 21/12/2014 16:41, Konstantin Belousov wrote: > On Sun, Dec 21, 2014 at 04:25:49PM +0200, Andriy Gapon wrote: >> On 21/12/2014 15:32, Konstantin Belousov wrote: >>> Author: kib >>> Date: Sun Dec 21 13:32:07 2014 >>> New Revision: 276008 >>> URL: https://svnweb.freebsd.org/changeset/base/276008 >>

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-21 Thread Konstantin Belousov
On Sun, Dec 21, 2014 at 04:25:49PM +0200, Andriy Gapon wrote: > On 21/12/2014 15:32, Konstantin Belousov wrote: > > Author: kib > > Date: Sun Dec 21 13:32:07 2014 > > New Revision: 276008 > > URL: https://svnweb.freebsd.org/changeset/base/276008 > > > > Log: > > Add VN_OPEN_NAMECACHE flag for vn

Re: svn commit: r276008 - in head/sys: kern sys

2014-12-21 Thread Andriy Gapon
On 21/12/2014 15:32, Konstantin Belousov wrote: > Author: kib > Date: Sun Dec 21 13:32:07 2014 > New Revision: 276008 > URL: https://svnweb.freebsd.org/changeset/base/276008 > > Log: > Add VN_OPEN_NAMECACHE flag for vn_open_cred(9), which requests that > the created file name was cached. Use