From: Kern Sibbald Date: Thu, 20 Sep 2007 13:38:22 +0000 (+0000) Subject: Commit ansi label patch X-Git-Tag: Release-7.0.0~5644 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77e9066d62a55a6fc1f920f952d440b1c5bfca13;p=bacula%2Fbacula Commit ansi label patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5610 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/2.2.4-ansi-label.patch b/bacula/patches/2.2.4-ansi-label.patch new file mode 100644 index 0000000000..2be8880195 --- /dev/null +++ b/bacula/patches/2.2.4-ansi-label.patch @@ -0,0 +1,36 @@ + + This patch fixes bug #954. + WEOF on non-appendable error when trying to label a tape with ANSI labels turned on. + + Apply it to version 2.2.4 (possibly earlier versions with): + + cd + patch -p0 <2.2.4-verify.patch + ./configure (your options) + make + ... + make install + +Index: src/stored/label.c +=================================================================== +--- src/stored/label.c (revision 5602) ++++ src/stored/label.c (working copy) +@@ -344,6 +344,9 @@ + } + } + ++ /* Temporarily mark in append state to enable writing */ ++ dev->set_append(); ++ + /* Create PRE_LABEL or VOL_LABEL if DVD */ + create_volume_label(dev, VolName, PoolName, dvdnow); + +@@ -364,8 +367,6 @@ + create_volume_label_record(dcr, dcr->rec); + dcr->rec->Stream = 0; + +- /* Temporarily mark in append state to enable writing */ +- dev->set_append(); + if (!write_record_to_block(dcr->block, dcr->rec)) { + Dmsg2(130, "Bad Label write on %s: ERR=%s\n", dev->print_name(), dev->print_errmsg()); + goto bail_out;