While I don't know it is a little modification or not, but,,, - you can check the open flags by f_flags or f_mode. - close(2) calls f_op.flush() and f_op.release(). release() is called when the reference counter of the file reaches zero. Also you can try inotify. - try d_path().
Junjiro Okajima "P.ANiter SzabNs": > I am planning to write a Linux filesystem meta-information add-on. As > a part of this, I need an event to be generated each time the last > O_WRONLY or O_RDWR instance of a file is closed. Is it possible to do > this with a little modification of unionfs? Is it true that the code > shoud be added to unionfs_file_release()? How do I get the full > pathname of the file being closed? _______________________________________________ unionfs mailing list [email protected] http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
