{"action":"opened","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/682","labels_url":"https://api.github.com/repos/lxc/lxc/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/682/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/682/events","html_url":"https://github.com/lxc/lxc/issues/682","id":114157612,"number":682,"title":"lxc-destroy: strange bug when used `find`","user":{"login":"gotlium","id":488554,"avatar_url":"https://avatars.githubusercontent.com/u/488554?v=3","gravatar_id":"","url":"https://api.github.com/users/gotlium","html_url":"https://github.com/gotlium","followers_url":"https://api.github.com/users/gotlium/followers","following_url":"https://api.github.com/users/gotlium/following{/other_user}","gists_url":"https://api.github.com/users/gotlium/gists{/gist_id}","starred_url":"https://api.github.com/users/gotlium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotlium/subscriptions","organizations_url":"https://api.github.com/users/gotlium/orgs","repos_url":"https://api.github.com/users/gotlium/repos","events_url":"https://api.github.com/users/gotlium/events{/privacy}","received_events_url":"https://api.github.com/users/gotlium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T22:06:01Z","updated_at":"2015-10-29T22:06:01Z","closed_at":null,"body":"    root@ldl-master:/vagrant# find /var/lib/lxcsnaps/god/ -type d -name 'snap*'| tac | xargs -I 1 lxc-snapshot -n god -d 1\r\n    lxc_container: lxccontainer.c: lxcapi_snapshot_destroy: 3177 Could not find snapshot /var/lib/lxcsnaps/god/snap0\r\n    lxc_container: lxc_snapshot.c: do_destroy_snapshots: 118 Error destroying snapshot /var/lib/lxcsnaps/god/snap0\r\n\r\n    root@ldl-master:/vagrant# find /var/lib/lxcsnaps/god/ -type d -name 'snap*' -exec lxc-snapshot -n god -d {} \\;\r\n    lxc_container: lxccontainer.c: lxcapi_snapshot_destroy: 3177 Could not find snapshot /var/lib/lxcsnaps/god/snap0\r\n    lxc_container: lxc_snapshot.c: do_destroy_snapshots: 118 Error destroying snapshot /var/lib/lxcsnaps/god/snap0\r\n\r\n    root@ldl-master:/vagrant# find /var/lib/lxcsnaps/god/ -type d -name 'snap*' -exec rm -rf {} \\;\r\n    find: `/var/lib/lxcsnaps/god/snap0': No such file or directory\r\n\r\n    # without problems\r\n    root@ldl-master:/vagrant# find /var/lib/lxcsnaps/god/ -type d -name 'snap*'| tac | xargs -I 1 bash -c 'lxc-snapshot -n god -d 1'\r\n    root@ldl-master:/vagrant# \r\n\r\nPS - When I use lvm, all snapshot will be removed automatically, but when I use overlayfs/zfs all snapshots not removed automatically."}}