From b535f1bacedf7a5c5b50daba6110d34ed6c363e2 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 23 Mar 1998 23:19:14 +0000 Subject: [PATCH] The logic in tape.c:getfile() doesn't allow for a filesystem with a blocksize smaller than the tape block size. The problem seems to be most easily fixed by changeing where fssize is set. PR: 5704 Submitted by: David Malone --- sbin/restore/tape.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 5da5c93affc5..204d736ffaaf 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -231,7 +231,9 @@ setup() fprintf(stderr, "cannot stat .: %s\n", strerror(errno)); done(1); } - if (stbuf.st_blksize > 0 && stbuf.st_blksize <= MAXBSIZE) + if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) + fssize = TP_BSIZE; + if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) fssize = stbuf.st_blksize; if (((fssize - 1) & fssize) != 0) { fprintf(stderr, "bad block size %d\n", fssize);