From: Kern Sibbald Date: Thu, 20 Sep 2007 13:38:22 +0000 (+0000) Subject: Commit ansi label patch X-Git-Tag: Release-3.0.0~2492 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46d6d0a608510609c1ea08645d15a9496028e297;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;