CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: pcaulfield@sourceware.org 2004-09-23 12:29:37 Modified files: daemons/clvmd : clvmd-command.c Log message: Don't use hold_lock for VG locks as that doesn't stop processes contending on the same node, only across the cluster. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-command.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2010-04-30 14:51:58 Modified files: daemons/clvmd : clvmd-command.c Log message: typo Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-command.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34 --- LVM2/daemons/clvmd/clvmd-command.c 2010/04/30 14:49:44 1.33 +++ LVM2/daemons/clvmd/clvmd-command.c 2010/04/30 14:51:58 1.34 @@ -371,7 +371,7 @@ /* * Build the command-line */ - /* FIXME missing strup error checks */ + /* FIXME missing strdup error checks */ argv[0] = strdup("clvmd"); /* Propogate debug options */
CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2010-10-20 14:51:18 Modified files: daemons/clvmd : clvmd-command.c Log message: Revert some debug statements that slipped in with last checkin. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-command.c.diff?cvsroot=lvm2&r1=1.40&r2=1.41 --- LVM2/daemons/clvmd/clvmd-command.c 2010/10/20 14:46:45 1.40 +++ LVM2/daemons/clvmd/clvmd-command.c 2010/10/20 14:51:18 1.41 @@ -210,12 +210,9 @@ if (lock_mode == LCK_UNLOCK) { - DEBUGLOG("PRE: UNLOCK\n"); lkid = (int)(long)dm_hash_lookup(lock_hash, lockname); - if (lkid == 0) { - DEBUGLOG("lock not found in table\n"); + if (lkid == 0) return EINVAL; - } status = sync_unlock(lockname, lkid); if (status) @@ -224,7 +221,6 @@ dm_hash_remove(lock_hash, lockname); } else { - DEBUGLOG("PRE: LOCK\n"); /* Read locks need to be PR; other modes get passed through */ if (lock_mode == LCK_READ) lock_mode = LCK_PREAD;
CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2012-02-27 10:02:17 Modified files: daemons/clvmd : clvmd-command.c Log message: Explicitely ignore result from sync_unlock() Make it obvious to analyzer - we can't do anything better here anyway. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-command.c.diff?cvsroot=lvm2&r1=1.65&r2=1.66 --- LVM2/daemons/clvmd/clvmd-command.c 2012/02/23 22:23:12 1.65 +++ LVM2/daemons/clvmd/clvmd-command.c 2012/02/27 10:02:17 1.66 @@ -355,7 +355,7 @@ lkid = (int)(long)dm_hash_get_data(lock_hash, v); lockname = dm_hash_get_key(lock_hash, v); DEBUGLOG("cleanup: Unlocking lock %s %x\n", lockname, lkid); - sync_unlock(lockname, lkid); + (void) sync_unlock(lockname, lkid); } dm_hash_destroy(lock_hash);