libvirt/src/locking
Jiri Denemark 8f10c1e77f sanlock: Truncate domain names longer than SANLK_NAME_LEN
Libvirt uses a domain name to fill in owner_name in sanlock_options in
virLockManagerSanlockAcquire. Unfortunately, owner_name is limited to
SANLK_NAME_LEN characters (including trailing '\0'), which means domains
with longer names fail to start when sanlock is enabled. However, we can
truncate the name when setting owner_name as explained by sanlock's
author:

Setting sanlk_options or the owner_name is unnecessary, and has very
little to no benefit.  If you do provide something in owner_name, it can
be anything, sanlock doesn't care or use it.

If you run the command "sanlock status", the output will display a list
of clients connected to the sanlock daemon.  This client list is
displayed as "pid owner_name" if the client has provided an owner_name
via sanlk_options. This debugging output is the only usage of
owner_name, so its only benefit is to potentially provide a more human
friendly output for debugging purposes.
2014-02-27 09:32:41 +01:00
..
domain_lock.c Convert 'int i' to 'size_t i' in src/locking/ files 2013-07-10 17:55:16 +01:00
domain_lock.h
libvirt_lockd.aug
libvirt_sanlock.aug
lock_daemon_config.c Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
lock_daemon_config.h Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
lock_daemon_dispatch.c
lock_daemon_dispatch.h
lock_daemon.c virtlockd: make re-exec more robust 2014-01-22 10:44:41 +01:00
lock_daemon.h
lock_driver_lockd.c Remove (nearly) all use of getuid()/getgid() 2013-10-21 14:03:52 +01:00
lock_driver_nop.c
lock_driver_nop.h
lock_driver_sanlock.c sanlock: Truncate domain names longer than SANLK_NAME_LEN 2014-02-27 09:32:41 +01:00
lock_driver.h Convert 'int i' to 'size_t i' in src/locking/ files 2013-07-10 17:55:16 +01:00
lock_manager.c Remove all direct use of getenv 2013-10-21 14:03:52 +01:00
lock_manager.h
lock_protocol.x Add ACL annotations to all RPC messages 2013-06-24 15:24:36 +01:00
lockd.conf
sanlock_helper.c
sanlock.conf
test_libvirt_lockd.aug.in
test_libvirt_sanlock.aug.in
test_virtlockd.aug.in test_virtlockd.aug.in: Use the correct file 2013-09-03 17:03:30 +02:00
virtlockd.aug Process virtlockd.conf instead of libvirtd.conf 2013-08-30 17:37:12 +02:00
virtlockd.conf Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
virtlockd.init.in virtlockd: improve initscripts 2013-12-10 12:02:37 +01:00
virtlockd.pod.in Revert "virtlockd: treat SIGHUP like SIGUSR1" 2013-12-10 15:49:06 +01:00
virtlockd.service.in Add Documentation fields to systemd service files 2014-01-09 09:32:55 +01:00
virtlockd.socket.in virtlockd: improve systemd units 2013-12-10 12:02:37 +01:00
virtlockd.sysconf