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:
parent
3fb152c523
commit
cb3ab5aaf7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user