diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2018-11-25 18:01:15 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2018-11-25 18:01:15 +0000 |
commit | ade67b509c99c17794dc8e6b33a75d63facacc93 (patch) | |
tree | 3e11f64d2c57d272f015b353117a1f83b87260d9 /sys/ufs/ffs/ffs_extern.h | |
parent | 6e00f3a3119355e389cf502acc32007868121981 (diff) | |
download | src-ade67b509c99c17794dc8e6b33a75d63facacc93.tar.gz src-ade67b509c99c17794dc8e6b33a75d63facacc93.zip |
Calculate updated superblock check-hash before writing it into the snapshot.
This corrects a bug that prevented snapshots from being mounted due to a
superblock check-hash failure.
Reported by: Brennan Vincent <brennan@umanwizard.com>
Tested by: Peter Holm (pho@)
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=340924
Diffstat (limited to 'sys/ufs/ffs/ffs_extern.h')
-rw-r--r-- | sys/ufs/ffs/ffs_extern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index c2f6c91bcc4b..d3f6cb597b9a 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -68,6 +68,7 @@ ufs2_daddr_t ffs_blkpref_ufs1(struct inode *, ufs_lbn_t, int, ufs1_daddr_t *); ufs2_daddr_t ffs_blkpref_ufs2(struct inode *, ufs_lbn_t, int, ufs2_daddr_t *); void ffs_blkrelease_finish(struct ufsmount *, u_long); u_long ffs_blkrelease_start(struct ufsmount *, struct vnode *, ino_t); +uint32_t ffs_calc_sbhash(struct fs *); int ffs_checkfreefile(struct fs *, struct vnode *, ino_t); void ffs_clrblock(struct fs *, u_char *, ufs1_daddr_t); void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int); |