Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2012 21:38:37 +0100
From:      Matthias Zitzen <info@o-notation.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: kqueue and note_rename
Message-ID:  <DE4CD6C3-DDBF-4EB7-9C20-0DCFC516B96A@o-notation.org>
In-Reply-To: <4F208787.7050605@freebsd.org>
References:  <FB8CEF4D-DF60-4E37-930A-4F35E8F33D4F@o-notation.org> <4F208787.7050605@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DE4CD6C3-DDBF-4EB7-9C20-0DCFC516B96A>