https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287897

            Bug ID: 287897
           Summary: freebsd-update is extremally slow due install -S. Do
                    we need this option on ZFS? (+possible fix)
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 261730
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261730&action=edit
the patch to freebsd-update

Do we really need install -S on ZFS?

The install_from_index() calls 
     install -S ... 
for every file. It's extremally slow when the update includes /usr/src (when we
upgrade a system).

IMHO, if we have ZFS on root, the -S option is redoundant because install
utility copies new version to a temporary file first and then switches new->old
file atomically. If a system crashed during install, zfs will roll back to some
intermediate state, with some files completely installed and others left intact
+ zero or one temporary file half-copied. 

The patch disabling -S option when we see than the root uses ZFS attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to