Properly compute the size of the final block of superblock summary information.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
This commit is contained in:
Kirk McKusick 2001-01-12 21:56:55 +00:00
parent 3fb152c523
commit cb3ab5aaf7

View File

@ -353,7 +353,7 @@ ffs_snapshot(mp, snapfile)
goto out1;
if (loc == len) {
readblock(nbp, blkno + loc);
size = fs->fs_cssize % fs->fs_bsize;
size = fs->fs_cssize - loc * fs->fs_bsize;
}
bcopy(fs->fs_csp[loc], nbp->b_data, size);
nbp->b_flags |= B_VALIDSUSPWRT;