sanlock: log error for invalid set_event args

Signed-off-by: David Teigland <teigland@redhat.com>
sanlock: close event fds when lockspace is removed

Signed-off-by: David Teigland <teigland@redhat.com>
sanlock: fix missing mutex unlock in previous commit

Signed-off-by: David Teigland <teigland@redhat.com>
sanlock: host event struct missing host_id in get_event

The destination host_id should be set so the struct
from get_event matches the struct from set_event.

Signed-off-by: David Teigland <teigland@redhat.com>
reset: add ability to clear all

"sanlk-reset clear all" will unregister all names.

Also, register for an ls name that already exists
will result in sanlk-resetd doing end, then reg.

Signed-off-by: David Teigland <teigland@redhat.com>
sanlk-resetd: Allow only privileged user to modify configuration

Previously sanlk-resetd socket used an abstract namespace, allowing any
user to configure the daemon.  Now we use a real filename so accessing
the socket is possible only for privileged user.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
sanlk-reset: no args should print help

Signed-off-by: David Teigland <teigland@redhat.com>
reset: Use find_ls to remove lockspace by name

find_ls was introduced recently, use it to find a lockspace by name fro
unregistering, instead of duplicating the search loop.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>