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:
parent
6c14066149
commit
7cf45323bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user