From: Kern Sibbald Date: Tue, 10 Feb 2004 20:21:34 +0000 (+0000) Subject: Fix FreeBSD pthreads patch documentation X-Git-Tag: Release-1.34.0~138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83a38cae8306f7f912a2cb320cf458fb2558193a;p=bacula%2Fbacula Fix FreeBSD pthreads patch documentation git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1040 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/freebsd/pthreads-fix.txt b/bacula/platforms/freebsd/pthreads-fix.txt index 54402f2d72..05df2591c0 100644 --- a/bacula/platforms/freebsd/pthreads-fix.txt +++ b/bacula/platforms/freebsd/pthreads-fix.txt @@ -107,11 +107,11 @@ machine. 2 - Apply this patch. -http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c.diff?r1=1.16.2.6&r2=1.16.2.8 +http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c?rev=1.16.2.8&content-type=text/x-cvsweb-markup To apply the patch, follow these instructions as root. -fetch -o pthread.diff http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c.diff?r1=1.16.2.6\&r2=1.16.2.8 +fetch -o pthread.diff http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c?rev=1.16.2.8 cd /usr/src/lib/libc_r/uthread/ patch < /path/to/pthread.diff @@ -126,4 +126,3 @@ TESTING: I suggest running tapetest on your patched system and then conducting a backup which spans two tapes. Restore the data and compare to the original. If not identical, please let us know. - diff --git a/bacula/src/stored/bcopy.c b/bacula/src/stored/bcopy.c index 0de1527978..94b544bd38 100644 --- a/bacula/src/stored/bcopy.c +++ b/bacula/src/stored/bcopy.c @@ -77,43 +77,43 @@ int main (int argc, char *argv[]) while ((ch = getopt(argc, argv, "b:c:d:mn:p:rsu:vV:w:?")) != -1) { switch (ch) { - case 'b': - bsr = parse_bsr(NULL, optarg); - break; + case 'b': + bsr = parse_bsr(NULL, optarg); + break; - case 'c': /* specify config file */ - if (configfile != NULL) { - free(configfile); - } - configfile = bstrdup(optarg); - break; + case 'c': /* specify config file */ + if (configfile != NULL) { + free(configfile); + } + configfile = bstrdup(optarg); + break; - case 'd': /* debug level */ - debug_level = atoi(optarg); - if (debug_level <= 0) - debug_level = 1; - break; + case 'd': /* debug level */ + debug_level = atoi(optarg); + if (debug_level <= 0) + debug_level = 1; + break; - case 'v': - verbose++; - break; + case 'v': + verbose++; + break; - case 'i': /* input Volume name */ - iVolumeName = optarg; - break; + case 'i': /* input Volume name */ + iVolumeName = optarg; + break; - case 'o': /* output Volume name */ - oVolumeName = optarg; - break; + case 'o': /* output Volume name */ + oVolumeName = optarg; + break; - case 'w': - wd = optarg; - break; + case 'w': + wd = optarg; + break; - case '?': - default: - usage(); + case '?': + default: + usage(); } }