* Currently this is not a problem as the only other stream, resource forks,
* are not handled as sparse files.
*/
-int send_data(JCR *jcr, int stream, FF_PKT *ff_pkt, struct CHKSUM *chksum)
+static int send_data(JCR *jcr, int stream, FF_PKT *ff_pkt, struct CHKSUM *chksum)
{
BSOCK *sd = jcr->store_bsock;
uint64_t fileAddr = 0; /* file address */
char *rbuf, *wbuf;
int rsize = jcr->buf_size; /* read buffer size */
POOLMEM *msgsave;
+#ifdef FD_NO_SEND_TEST
+ return 1;
+#endif
msgsave = sd->msg;
rbuf = sd->msg; /* read buffer */
BSOCK *sd = jcr->store_bsock;
POOLMEM *msgsave;
int len;
+#ifdef FD_NO_SEND_TEST
+ return true;
+#endif
len = bacl_get(jcr, acltype);
if (len < 0) {
*/
#undef VERSION
-#define VERSION "1.38.0"
-#define BDATE "04 November 2005"
-#define LSMDATE "04Nov05"
+#define VERSION "1.38.1"
+#define BDATE "05 November 2005"
+#define LSMDATE "05Nov05"
/* Debug flags */
#undef DEBUG
/* The following are turned on for performance testing */
+/*
+ * If you turn on the NO_ATTRIBUTES_TEST and rebuild, the SD
+ * will receive the attributes from the FD, will write them
+ * to disk, then when the data is written to tape, it will
+ * read back the attributes, but they will not be sent to
+ * the Director. So this will eliminate: 1. the comm time
+ * to send the attributes to the Director. 2. the time it
+ * takes the Director to put them in the catalog database.
+ */
/* #define NO_ATTRIBUTES_TEST 1 */
+
+/*
+* If you turn on NO_TAPE_WRITE_TEST and rebuild, the SD
+* will do all normal actions, but will not write to the
+* Volume. Note, this means a lot of functions such as
+* labeling will not work, so you must use it only when
+* Bacula is going to append to a Volume. This will eliminate
+* the time it takes to write to the Volume (not the time
+* it takes to do any positioning).
+*/
/* #define NO_TAPE_WRITE_TEST 1 */
+
+/*
+ * If you turn on FD_NO_SEND_TEST and rebuild, the FD will
+ * not send any attributes or data to the SD. This will
+ * eliminate the comm time sending to the SD.
+ */
/* #define FD_NO_SEND_TEST 1 */