{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"assignee":null,"updated_at":"2011-11-16T14:56:58Z","labels":[{"name":"Priority-Medium","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Priority-Medium"},{"name":"Type-Enhancement","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Type-Enhancement"}],"closed_at":null,"comments":6,"url":"https://api.github.com/repos/axkibe/lsyncd/issues/16","body":"Originally filed by sh2...@gmail.com on 2010-04-10T10:37:57\n\nLsyncd does not allow the user to configure the triggering inotify events.\r\nInstead lsyncd registers the following events ATTRIB, CLOSE_WRITE, CREATE,\r\nDELETE, DELETE_SELF, MOVED_FROM, MOVED_TO, DONT_FOLLOW, ONLYDIR. In some\r\nuse cases this will result in unnecessary sync operations which is in\r\nparticular painful if the network bandwidth between source and destination\r\nis an issue.\r\n\r\nGiven an remote application which puts files in the lsyncd source by\r\ncreating a temporary file (CREATE), copy the data (CLOSE_WRITE), moving the\r\ntemporary file to the final filename (MOVE_FROM, MOVE_TO). This application\r\nbehavior is common because the final move command is an atomic operations\r\nwhich ensures that only completely transmitted files are available within\r\nthe data source. In this use case lsyncd will trigger 4 rsync operations\r\nand the data file will be transmitted twice.\r\n\r\nThe attached patch introduces the new configuration node <inotify> which\r\nmay be configured in the global <settings> section or on a <directory>\r\nbasis. If no <inotify> node is configured then the previously described\r\ndefault event list is used.\r\n\r\nSample configuration:\r\n\r\n<lsyncd version=\"1\">\r\n    <directory>\r\n        <inotify>\r\n            <event id=\"MOVED_TO\"/>\r\n            <event id=\"DELETE\"/>\r\n        </inotify>\r\n        <source path=\"/var/data\"/>\r\n        <target path=\"destination_host::dest\"/>\r\n    </directory>    \r\n</lsyncd>","html_url":"https://github.com/axkibe/lsyncd/issues/16","title":"Make inotify events configurable","number":16,"id":2257029,"created_at":"2011-11-16T14:56:44Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"updated_at":"2011-11-16T14:56:58Z","url":"https://api.github.com/repos/axkibe/lsyncd/issues/comments/2760275","body":"Updated by axk...@gmail.com on 2010-07-18T09:32:07\n\nYes, it cant hurt to make this thing generally more configurable than fixing settings. Will integrate.\n\nRemoved label Type-Defect\nAdded label Type-Enhancement","id":2760275,"created_at":"2011-11-16T14:56:58Z"}}