From owner-freebsd-hackers@freebsd.org Wed Nov 11 17:24:59 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E294A2CCCD for ; Wed, 11 Nov 2015 17:24:59 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F3FC61DEC for ; Wed, 11 Nov 2015 17:24:58 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by ykba77 with SMTP id a77so59749370ykb.2 for ; Wed, 11 Nov 2015 09:24:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Zj4S63X1r4KRN0d9mXL5ECuObb2yL7GgHfRYIVBy1H0=; b=ma0xWSwWFktgral4NEYlnrxHBP0kf8QeUFhj+QFS9uEI6OtESvx9jQhCGjgdaqz8KA g9/b2dqrtrDIM4yIFxKJAK07RMzi5MLxtJNM9UsB1GIOPd1kXN9JDuk6YqKZo3JsHnE0 LZszbZrUSOK/QfFjiWgl7TegbonGDIbKEWtliQ7Tcu52AcR8ruX12NpqIJZghiW1NdzR kAGuQJIEe/OZZ/D9EyXT4BLauj75E36xqZUsu1yDhwroLzngqiyxwREWueOHM68CO52A AXH5UkvtT3aMqL+czeo8IkVPmEUQ7MGDId0hTAFkEUYcn+kw4JVvWpMq8E8el883W9oI 3CzQ== X-Received: by 10.129.53.148 with SMTP id c142mr10875096ywa.138.1447262692332; Wed, 11 Nov 2015 09:24:52 -0800 (PST) Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com. [209.85.160.171]) by smtp.gmail.com with ESMTPSA id a143sm11612014ywe.54.2015.11.11.09.24.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2015 09:24:52 -0800 (PST) Received: by ykdv3 with SMTP id v3so60108535ykd.0 for ; Wed, 11 Nov 2015 09:24:51 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.129.102.5 with SMTP id a5mr12246849ywc.9.1447262691600; Wed, 11 Nov 2015 09:24:51 -0800 (PST) Reply-To: cem@FreeBSD.org Received: by 10.37.17.2 with HTTP; Wed, 11 Nov 2015 09:24:51 -0800 (PST) In-Reply-To: <20151111105656.GX2257@kib.kiev.ua> References: <5641A2A5.7070909@gmail.com> <20151110081421.GL2257@kib.kiev.ua> <56426054.2070007@gmail.com> <20151111105656.GX2257@kib.kiev.ua> Date: Wed, 11 Nov 2015 09:24:51 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Detecting new file name after receiving kevent's NOTE_RENAME From: Conrad Meyer To: Konstantin Belousov Cc: Ivan Radovanovic , FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 17:24:59 -0000 On Wed, Nov 11, 2015 at 2:56 AM, Konstantin Belousov wrote: > It is up to filesystem to cache or not cache the file name entry. > If filesystem does not insert the name entry into namecache on rename, > there is nothing which could help vn_fullpath(9) to return a path. Besides vn_vptocnp? I thought vn_fullpath(9) should always succeed since 10.0 if the vnode still exists. Best, Conrad