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___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org