/*
- * Copyright (c) 2010 Zmanda Inc. All Rights Reserved.
+ * Copyright (c) 2010-2012 Zmanda Inc. All Rights Reserved.
*
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License version 2.1 as
- * published by the Free Software Foundation.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
hdr->partnum = 2;
hdr->totalparts = -1;
if (!PREV_RT(hdr)) return 0;
+ } else if (hdr->type == F_DUMPFILE) {
+ hdr->partnum = 1;
+ hdr->totalparts = 1;
+ if (!PREV_RT(hdr)) return 0;
} else {
hdr->partnum = 0;
hdr->totalparts = 0;
}
/* one function for each field; each fn calls the one above */
-static int
+static gboolean
test_roundtrip(void)
{
int rv;
rv = PREV_RT(&hdr);
tu_dbg("%d round-trips run\n", n_round_trips);
- return rv;
+ return (rv) ? TRUE : FALSE;
}
/* doc