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 <dwmalone@maths.tcd.ie>
This commit is contained in:
Jordan K. Hubbard 1998-03-23 23:19:14 +00:00
parent 8d737d4688
commit b535f1bace
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34851

View File

@ -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);