python, inotify & kernel 2.6.12
its working!
inotify is a recent addition to the linux kernel replacing the not very nice dnotify, you only have to have ONE open file descriptor to watch many files, not one per file/directory
well read the README which comes with inotify for more advocacy,))
ill tidy up my inotiy for python a bit and then publish it here, its pure python! not like python-inotfy which is a horrendus mess of C and python. oh and it doesnt seem to work.
but this "it does not seem to work" issue is probably due to the fact that inotify has been changing its mind quite often during the last few patches abotu what it wants passed in the ioctl() sys call. sometimes its a fd sometimes it accepts a path...well...the version now merged into the kernel(as of 2.6.13-rc3) uses a completely different API. my script is tested with gentoo's gentoo-sources 2.6.12, if i recall correctly they use the 0.23 inotify patch, but changing fro fd to path should be trivial and shoul happen somewhere in the python code. dont want to bother the user with something like that
inotify is a recent addition to the linux kernel replacing the not very nice dnotify, you only have to have ONE open file descriptor to watch many files, not one per file/directory
well read the README which comes with inotify for more advocacy,))
ill tidy up my inotiy for python a bit and then publish it here, its pure python! not like python-inotfy which is a horrendus mess of C and python. oh and it doesnt seem to work.
but this "it does not seem to work" issue is probably due to the fact that inotify has been changing its mind quite often during the last few patches abotu what it wants passed in the ioctl() sys call. sometimes its a fd sometimes it accepts a path...well...the version now merged into the kernel(as of 2.6.13-rc3) uses a completely different API. my script is tested with gentoo's gentoo-sources 2.6.12, if i recall correctly they use the 0.23 inotify patch, but changing fro fd to path should be trivial and shoul happen somewhere in the python code. dont want to bother the user with something like that
0 Comments:
Post a Comment
<< Home