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
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.
-
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();
}
}