{"action":"closed","issue":{"url":"https://api.github.com/repos/mpartel/bindfs/issues/37","repository_url":"https://api.github.com/repos/mpartel/bindfs","labels_url":"https://api.github.com/repos/mpartel/bindfs/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/mpartel/bindfs/issues/37/comments","events_url":"https://api.github.com/repos/mpartel/bindfs/issues/37/events","html_url":"https://github.com/mpartel/bindfs/issues/37","id":167968044,"number":37,"title":"Append-only mode fails even when supported by the underlying file system","user":{"login":"earlruby","id":1270169,"avatar_url":"https://avatars.githubusercontent.com/u/1270169?v=3","gravatar_id":"","url":"https://api.github.com/users/earlruby","html_url":"https://github.com/earlruby","followers_url":"https://api.github.com/users/earlruby/followers","following_url":"https://api.github.com/users/earlruby/following{/other_user}","gists_url":"https://api.github.com/users/earlruby/gists{/gist_id}","starred_url":"https://api.github.com/users/earlruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earlruby/subscriptions","organizations_url":"https://api.github.com/users/earlruby/orgs","repos_url":"https://api.github.com/users/earlruby/repos","events_url":"https://api.github.com/users/earlruby/events{/privacy}","received_events_url":"https://api.github.com/users/earlruby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T22:06:04Z","updated_at":"2016-07-31T18:52:06Z","closed_at":"2016-07-31T18:52:06Z","body":"Append-only files are used by applications such as Redis. To set a file as append-only on an ext4 fs, use `chattr +a file`:\r\n\r\n```\r\nroot@ubuntu:~# mkdir /test/ext4fs\r\nroot@ubuntu:~# cd /test/ext4fs\r\nroot@ubuntu:/test/ext4fs# touch append-only-file\r\nroot@ubuntu:/test/ext4fs# chattr +a append-only-file\r\nroot@ubuntu:/test/ext4fs# echo this >> append-only-file\r\nroot@ubuntu:/test/ext4fs# echo is >> append-only-file\r\nroot@ubuntu:/test/ext4fs# echo an >> append-only-file\r\nroot@ubuntu:/test/ext4fs# echo append only file >> append-only-file\r\n```\r\n\r\nAn append-only file cannot be overwritten:\r\n```\r\nroot@ubuntu:/test/ext4fs# echo cannot overwrite > append-only-file\r\n-bash: append-only-file: Operation not permitted\r\n```\r\n\r\nOr deleted:\r\n```\r\nroot@ubuntu:/test/ext4fs# rm append-only-file\r\nrm: cannot remove 'append-only-file': Operation not permitted\r\nroot@ubuntu:/test/ext4fs# chattr -a append-only-file\r\nroot@ubuntu:/test/ext4fs# rm append-only-file\r\n```\r\n\r\nbindfs does not support append-only mode, even though the underlying file system does:\r\n```\r\nroot@ubuntu:/test/ext4fs# mkdir /test/bindfs\r\nroot@ubuntu:/test/ext4fs# bindfs /test/ext4fs /test/bindfs\r\nroot@ubuntu:/test/ext4fs# cd /test/bindfs\r\nroot@ubuntu:/test/bindfs# touch aof\r\nroot@ubuntu:/test/bindfs# chattr +a aof\r\nchattr: Function not implemented while reading flags on aof\r\n```\r\n\r\nExpected behavior is to allow `chattr +a file` on a bindfs file system if the underlying file system supports it."}}
{"actor":{"display_login":"mpartel"}}