From: Eric Bollengier Date: Fri, 13 Jun 2008 14:36:42 +0000 (+0000) Subject: ebl small update X-Git-Tag: Release-3.0.0~1316 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3fa60007f4244d2b0f9f360f9ca490a6485d1cab;p=bacula%2Fbacula ebl small update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7133 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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) {