]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Several fixes for units errors:
authormckusick <mckusick@FreeBSD.org>
Tue, 8 May 2001 07:29:03 +0000 (07:29 +0000)
committermckusick <mckusick@FreeBSD.org>
Tue, 8 May 2001 07:29:03 +0000 (07:29 +0000)
commit1be6156a3d0e1361a8aded14931c71b619cd3968
treeae4c1748f1e4f0e1072f970a9217717449282f92
parent9b0de0da1c26163969ed800f7c9cc2f47e11fd07
Several fixes for units errors:
1) Do not assume that the superblock will be of size fs->fs_bsize.
   This fixes a panic when taking a snapshot on a filesystem with
   a block size bigger than 8K.
2) Properly calculate the number of fragments that follow the
   superblock summary information. This fixes a bug with inconsistent
   snapshots.
3) When cleaning up a snapshot that is about to be removed, properly
   calculate the number of blocks that need to be checked. This fixes
   a bug that created partially allocated inodes.
4) When moving blocks from a snapshot that is about to be removed
   to another snapshot, properly account for the reduced number of
   blocks in the snapshot from which they are taken. This fixes a
   bug in which the number of blocks released from a snapshot did not
   match the number that it claimed to have.
sys/ufs/ffs/ffs_snapshot.c