diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-05-09 19:26:58 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-05-09 19:26:58 +0000 |
commit | 5cd87d3d277cbc5f938be76b98971aedc2086d47 (patch) | |
tree | 98a83f9d2766129c79c544183b40e3a867f00362 /daemons | |
parent | 689d8a80b58c632f9d2f9597e8ec6ce3565b4edf (diff) | |
download | lvm2-5cd87d3d277cbc5f938be76b98971aedc2086d47.tar.gz |
more cleanup
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/clvmd/clvmd-command.c | 2 | ||||
-rw-r--r-- | daemons/clvmd/lvm-functions.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/daemons/clvmd/clvmd-command.c b/daemons/clvmd/clvmd-command.c index 3b1379fee..0d3da6a60 100644 --- a/daemons/clvmd/clvmd-command.c +++ b/daemons/clvmd/clvmd-command.c @@ -119,7 +119,7 @@ int do_command(struct local_client *client, struct clvm_header *msg, int msglen, /* Check to see if the VG is in use by LVM1 */ status = do_check_lvm1(lockname); /* P_#global causes a full cache refresh */ - if (!strcmp(lockname, "P_#global")) + if (!strcmp(lockname, "P_" VG_GLOBAL)) do_refresh_cache(); else drop_metadata(lockname + 2); diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index 84e0aa5df..f226e6e04 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -472,8 +472,8 @@ static void drop_vg_locks() popen ("lvm pvs --config 'log{command_names=0 prefix=\"\"}' --nolocking --noheadings -o vg_name", "r"); - sync_unlock("P_#orphans", LCK_EXCL); - sync_unlock("P_#global", LCK_EXCL); + sync_unlock("P_" VG_ORPHANS, LCK_EXCL); + sync_unlock("P_" VG_GLOBAL, LCK_EXCL); if (!vgs) return; |