kqueue and note_rename
Matthias Zitzen
info at o-notation.org
Mon Jan 30 20:39:02 UTC 2012
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.
>
> 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.
>
Is there a any other method to get fileevents on FressBSD? especially with the filenames too?
Matthias
More information about the freebsd-hackers
mailing list