summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/lvm-functions.h
Commit message (Collapse)AuthorAgeFilesLines
* CLVMD bugfix support for args -S -EZdenek Kabelac2011-09-241-1/+1
| | | | | | | | | | | | | | | | | | Bugfix: Add (most probably unfinished) support for -E arg with list of exclusive locks. (During clvmd restart all exclusive locks would have been lost and in fact, if there would have been an exclusive lock, usage text would be printed and clvmd exits.) Instead of parsing list options multiple times every time some lock UUID is checked - put them straight into the hash table - make the code easier to understand as well. Remove was_ex_lock() function (replaced with dm_hash_lookup()). Swap return value for get_initial_state() (1 means success). Update man pages and usage info for -E option.
* Remove obsoleted GULM clvmd cluster locking support.Milan Broz2011-08-091-1/+1
|
* Speedup consequent activation callsZdenek Kabelac2011-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | Stop calling fs_unlock() from lv_de/activate(). Start using internal lvm fs cookie for dm_tree. Stop directly calling dm_udev_wait() and dm_tree_set/get_cookie() from activate code - it's now called through fs_unlock() function. Add lvm_do_fs_unlock() Call fs_unlock() when unlocking vg where implicit unlock solves the problem also for cluster - thus no extra command for clustering environment is required - only lvm_do_fs_unlock() function is added to call lvm's fs_unlock() while holding lvm_lock mutex in clvmd. Add fs_unlock() also to set_lv() so the command waits until devices are ready for regular open (i.e. wiping its begining). Move fs_unlock() prototype to activation.h to keep fs.h private in lib/activate dir and not expose other functions from this header.
* Allow internal suspend and resume of origin without its snapshots.Alasdair Kergon2010-08-171-3/+2
|
* Add -S command to clvmd, so it can restart itself and stillChristine Caulfield2010-04-201-3/+3
| | | | preserve exlusive LV locks.
* Move processing of VG locks to separate function (similar to LV locks).Milan Broz2010-01-051-1/+2
| | | | | | And print some debugging info. No functional change in this patch.
* Destroy toolcontext on exit in clvmd (fixes memory pool leaks).Milan Broz2009-06-151-0/+1
|
* Add infrastructure for queriying for remote locks.Milan Broz2009-05-191-0/+1
| | | | | | | | | | | | | Current code, when need to ensure that volume is not active on remote node, it need to try to exclusive activate volume. Patch adds simple clvmd command which queries all nodes for lock for given resource. The lock type is returned in reply in text. (But code currently uses CR and EX modes only.)
* Tidy lv_hash[_lock] use inside clvmd.Milan Broz2009-04-211-1/+1
| | | | | | | | | | | - Rename unlock_all to destroy_lvhash, this function is called in cluster shutdown unlocks everything and clean up allocated info space. - Tidy lv_hash_lock use . Except adding free(lvi) in lv_has destructror there is no functional change.
* Add missing mutex around clvmd lvmcache_drop_metadata library call.Alasdair Kergon2008-05-091-0/+1
|
* Tidy the clvmd backup code.Patrick Caulfield2007-12-051-1/+1
| | | | | | Move the backups inside the protection of the VG lock, Don't backup if we have a suspended LV Correct the vg_read() call
* When we unlock a VG tell the clvmds to see if a backup of the metadata needsPatrick Caulfield2007-12-041-1/+1
| | | | to be done.
* Add "const" attributes where possible: first cut.Jim Meyering2007-08-071-1/+1
|
* Vastly improve the errors returned to the user from clvmd.Patrick Caulfield2006-10-051-0/+1
| | | | | It now captures the error messages that are generated and returns them in the reply packet rather than just telling the user to check syslog.
* Add -R switch to clvmd.Patrick Caulfield2006-10-041-0/+1
| | | | This option will instruct all the clvmd daemons in the cluster to reload their device cache
* make clvmd FDs close-on-exec, to avoid warnings when running lvm via popen.Patrick Caulfield2005-03-071-1/+1
| | | | | clvmd-gulm unlocks VG & orphan locks at startup in case they are stale. clvmd-gulm now unlocks VG & orphan locks if client dies.
* Add cluster support.Alasdair Kergon2004-06-241-0/+35