As part of creating a snapshot, set fs->fs_fmod to 0 in the snapshot image
because nothing ever changes this field for read-only mounts and we want to verify that it is still 0 when we unmount. Reviewed by: mckusick Approved by: mckusick (mentor) Sponsored by: Netflix
This commit is contained in:
parent
20a4e15451
commit
2ac044e6bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355150
@ -803,6 +803,7 @@ ffs_snapshot(mp, snapfile)
|
||||
brelse(nbp);
|
||||
} else {
|
||||
loc = blkoff(fs, fs->fs_sblockloc);
|
||||
copy_fs->fs_fmod = 0;
|
||||
copy_fs->fs_ckhash = ffs_calc_sbhash(copy_fs);
|
||||
bcopy((char *)copy_fs, &nbp->b_data[loc], (u_int)fs->fs_sbsize);
|
||||
bawrite(nbp);
|
||||
|
Loading…
Reference in New Issue
Block a user