I found why there's no BLK_START_OF_TAPE or BLK_START_OF_BACKUP headers in the tape stream

"David C. Partridge" <[email protected]>
Newsgroups gmane.linux.mondo.devel
Message-ID <[email protected]>
In libmondo-archive.c at line 1183

	if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
		write_header_block_to_stream((off_t)0, "start-of-tape",
BLK_START_OF_TAPE);
		write_header_block_to_stream((off_t)0, "start-of-backup",
BLK_START_OF_BACKUP);
	}

but in write_header_block_to_stream in libmondo-stream.c at line 1764 it
says:

	if (length_of_incoming_file <= 0) {
		return(1);
	}

so neither of these header blocks are written to the tape.

PS did you get my post with verify.rar attached?  It got held for moderation
with the message:

	Message body is too big: 413074 bytes with a limit of 400 KB

PPS lots of places I see code like 
	for (i = 0; i < (int) TAPE_BLOCK_SIZE; i++) {
		tempblock[i] = 0;
	}
I'm curious what you have against memset()?

Dave 


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.