commit 6468ae5d37c4571c13cadda3d4f4be2b439d6f35 Author: Bob Peterson <rpeterso@redhat.com> Date: Wed Jun 23 14:25:31 2010 -0500 gfs2_edit restoremeta should not return 0 on failure The gfs2_edit "restoremeta" function was always returning zero, even when the restore was not successful. This made it difficult to automate some gfs2 testing. This patch makes gfs2_edit return the correct result from restoremeta. rhbz#607229 diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c index d47b283..5cec3a0 100644 --- a/gfs2/edit/savemeta.c +++ b/gfs2/edit/savemeta.c @@ -882,5 +882,5 @@ void restoremeta(const char *in_fn, const char *out_device, if (!printblocksonly) close(sbd.device_fd); - exit(0); + exit(error); }