mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 21:32:58 +00:00
MFC of 324456.
Do not report filesystem as modified if only timestamp updated in superblock.
This commit is contained in:
parent
f6d20b64f3
commit
15baaff7b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=324675
@ -231,6 +231,7 @@ checkfilesys(char *filesys)
|
||||
struct group *grp;
|
||||
struct iovec *iov;
|
||||
char errmsg[255];
|
||||
int ofsmodified;
|
||||
int iovlen;
|
||||
int cylno;
|
||||
intmax_t blks, files;
|
||||
@ -425,10 +426,15 @@ checkfilesys(char *filesys)
|
||||
}
|
||||
/*
|
||||
* Write the superblock so we don't try to recover the
|
||||
* journal on another pass.
|
||||
* journal on another pass. If this is the only change
|
||||
* to the filesystem, we do not want it to be called
|
||||
* out as modified.
|
||||
*/
|
||||
sblock.fs_mtime = time(NULL);
|
||||
sbdirty();
|
||||
ofsmodified = fsmodified;
|
||||
flush(fswritefd, &sblk);
|
||||
fsmodified = ofsmodified;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user