From 831be74e4a7b5df51e189a6f421ce8b3fac2de48 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 13 Jun 2008 14:36:42 +0000 Subject: [PATCH] ebl small update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7133 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/vtape.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bacula/src/stored/vtape.c b/bacula/src/stored/vtape.c index e2cef892e8..38f7a65f2a 100644 --- a/bacula/src/stored/vtape.c +++ b/bacula/src/stored/vtape.c @@ -445,7 +445,10 @@ int vtape::get_fd() } /* - * TODO: check if after a write op, and other tape op put a EOF + * Write a variable block of count size. + * block = vtape_header + data + * vtape_header = sizeof(data) + * if vtape_header == 0, this is a EOF */ int vtape::write(const void *buffer, unsigned int count) { @@ -852,9 +855,9 @@ int vtape::close() * When a filemark is encountered while reading, the following happens. If * there are data remaining in the buffer when the filemark is found, the * buffered data is returned. The next read returns zero bytes. The following - * read returns data from the next file. The end of recorded data is sig‐ - * naled by returning zero bytes for two consecutive read calls. The third - * read returns an error. + * read returns data from the next file. The end of recorded data is signaled + * by returning zero bytes for two consecutive read calls. The third read + * returns an error. */ int vtape::read(void *buffer, unsigned int count) { -- 2.39.5