1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Make clvmd return 0 on success rather than 1.

This commit is contained in:
Christine Caulfield 2009-10-12 08:33:30 +00:00
parent 2cec0e4562
commit c503c83c78
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.54 -
=====================================
Make clvmd return 0 on success rather than 1.
Add --pvmetadatacopies for pvcreate, vgcreate, vgextend, vgconvert.
Add implict pvcreate support to vgcreate and vgextend.
Correct example.conf to indicate that lvm2 not lvm1 is the default format.

View File

@ -303,7 +303,7 @@ int main(int argc, char *argv[])
exit(0);
case 'R':
return refresh_clvmd();
return refresh_clvmd()==1?0:1;
case 'C':
clusterwide_opt = 1;
@ -354,7 +354,7 @@ int main(int argc, char *argv[])
/* Sending to stderr makes no sense for a detached daemon */
if (debug == DEBUG_STDERR)
debug = DEBUG_SYSLOG;
return debug_clvmd(debug, clusterwide_opt);
return debug_clvmd(debug, clusterwide_opt)==1?0:1;
}
/* Fork into the background (unless requested not to) */