mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -803,6 +803,7 @@ out1:
|
|||
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 a new issue