From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 30 20:39:02 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF188106566B for ; Mon, 30 Jan 2012 20:39:02 +0000 (UTC) (envelope-from info@o-notation.org) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mx1.freebsd.org (Postfix) with ESMTP id 50E038FC0C for ; Mon, 30 Jan 2012 20:39:01 +0000 (UTC) Received: from kant.vitec-loesung.de (p5DC92F3D.dip.t-dialin.net [93.201.47.61]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LzDgT-1SeNYT2zCb-014VvP; Mon, 30 Jan 2012 21:39:00 +0100 Received: from ashpool.net-send.org (unknown [10.0.2.24]) by kant.vitec-loesung.de (Postfix) with ESMTP id C7A642A23E for ; Mon, 30 Jan 2012 21:38:38 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) From: Matthias Zitzen In-Reply-To: <4F208787.7050605@freebsd.org> Date: Mon, 30 Jan 2012 21:38:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4F208787.7050605@freebsd.org> To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:aNa9q08SzE4WVwTJbL3yoJ6dbJazQaWUXeGkzzah8kL WeC/k3TNNKONokqRMu/lYEjmOTQcdUzP0RunVhlGQhdf4Etlqt uACyViDhoArEFxQRU4jEZ5DClHjrIEJM9nBKGxgeGn6/Hpw5RZ Lj6+rTenBWufne+UDkn5pu1nDdR/IkijCIF1p6cIVx8ZqzT5CX /HE7sUKOgRGpfqok3ozXgKQPckKoLpdWhAhW3D99DPBmTKBAfz TBsFy4YXQggWofs7brmxEjUHsFTECB3r6NKavo5Ni4p7Nn6bAJ 2FAGX7t7oLZaxenfgsX0yXK4WlHIs3BiJdC0ZhiLkNh+QhnFIz yuZN+h+g8xfQF8EomEn3YyP0RpF7CYtzn+vcBNQQC77fdQ6OjQ xazTTPDqQskCQ== Subject: Re: kqueue and note_rename X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 20:39:02 -0000 Am 25.01.2012 um 23:51 schrieb Julian Elischer: > On 1/25/12 10:44 AM, Matthias Zitzen wrote: >> Hello list, >> does anybody have an idea, how to obtain the new name of a renamed = file after the note_rename event is fired. I'm not very familiar with = filesystem-operations. I checked the typical functions like stat or = lstat, but these functions are working only with filenames. >=20 > there is no real way. > the new link to the inode could come from any point in the filesystem = so the > only way to find it would be an exhaustive search. > the only information that you could return that might make any sense = would be the inode number of the new parent. > That would allow you to follow the '..' links and do 'pwd' in effect. > I have not checked to see if that information is returned. If it isn't = it might be a really nice enhancement to see if it could be added. >=20 Is there a any other method to get fileevents on FressBSD? especially = with the filenames too? Matthias=