Page MenuHomeFreeBSD

install: add -z <max_cmp_size> option
ClosedPublic

Authored by ray on Mon, May 25, 7:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 18, 11:41 PM
Unknown Object (File)
Thu, Jun 18, 2:38 AM
Unknown Object (File)
Wed, Jun 17, 10:51 AM
Unknown Object (File)
Sun, Jun 14, 1:00 AM
Unknown Object (File)
Tue, Jun 9, 1:24 PM
Unknown Object (File)
Tue, Jun 9, 1:21 PM
Unknown Object (File)
Tue, Jun 9, 1:07 AM
Unknown Object (File)
Tue, Jun 9, 1:04 AM
Subscribers

Details

Summary

Introduces the -z <max_cmp_size> flag, enabling users to set a custom file size limit for pre-installation change checks and avoiding future hard-coded limit modifications.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ray requested review of this revision.Mon, May 25, 7:57 AM

I'd suggest to split the default increase and the added new option into two separate commits.

The commit that increases the default should have some data to back the decision made. E.g. installworld time decreased by that many seconds.

glebius added inline comments.
usr.bin/xinstall/install.1
269–274

I think wording can be improved here. Subscribing an expert.

Move the hard-coded limit to separate commit.

ray retitled this revision from install: Increase max comparison size to 64MB; add -z option to install: add -z <max_cmp_size> option.Wed, May 27, 9:09 AM
ray edited the summary of this revision. (Show Details)

I'd suggest to split the default increase and the added new option into two separate commits.

The commit that increases the default should have some data to back the decision made. E.g. installworld time decreased by that many seconds.

"installworld time" can't be resquied due to the build of the llvm and its libs :D
But IMO, -C is not for the time reduction (at least it is less important), rather to keep unchanged parts w/o overwriting. Reduce flash writes, keep changes visible, etc.

This revision is now accepted and ready to land.Wed, May 27, 5:45 PM
This revision was automatically updated to reflect the committed changes.

-C for builds makes a lot of sense.
I think we should remove the limit all together. It was added in originally because mmap was being used in commit de264c2bd89b931303db40fb8a50c9ee5ed8f858.

Updates the install's maximum file size of a file to select it for comparison with the -C flag.

D44809 removed mmap too.

Update revision: https://reviews.freebsd.org/D57503
Bryan, can you please review it too?
Thanks!