Bug 246985 - `newfs -R` is incomplete
Summary: `newfs -R` is incomplete
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-04 16:09 UTC by goatshit54108
Modified: 2020-06-05 09:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description goatshit54108 2020-06-04 16:09:55 UTC
`newfs -R` has the purpose of enforcing reproducible output, i.e. to be independent of time or random seeds. However, it is incomplete, because sbput(3) writes a fresh time() sample into the `struct fs` variable: see ffs_sbput() in sys/ufs/ffs/ffs_subr.c.