Page MenuHomeFreeBSD

Fix circular dependency created after r287197 between ldconfig and mountcritremote
ClosedPublic

Authored by ngie on May 29 2016, 2:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 4:55 AM
Unknown Object (File)
Sep 19 2024, 9:14 AM
Unknown Object (File)
Sep 18 2024, 11:48 AM
Unknown Object (File)
Sep 18 2024, 6:24 AM
Unknown Object (File)
Sep 18 2024, 12:49 AM
Unknown Object (File)
Sep 17 2024, 3:21 AM
Unknown Object (File)
Sep 16 2024, 8:25 PM
Unknown Object (File)
Sep 15 2024, 2:03 PM

Details

Reviewers
jilles
Summary

Fix circular dependency created after r287197 between ldconfig and mountcritremote

ldconfig is already required by mountcritremote indirectly, as noted by rcorder:

rcorder: Circular dependency on provision mountcritremote' in file ldconfig'.

Having mountcritremote REQUIRE ldconfig breaks dependency ordering.

Making the ldconfig hints be conditionally regenerated from mountcritremote when
remote filesystems are mounted is done after this change, similar to cleanvar
being conditionally called after the change.

PR: 202726
Sponsored by: EMC / Isilon Storage Division

Test Plan
  • Booted systems multiple times successfully, with NFS mounted late, and not.

Before change:

% rcorder /etc/rc.d/* | awk '/ldconfig|mount.*/ { print NR, $NF }'
rcorder: Circular dependency on provision mountcritremote' in file /etc/rc.d/ldconfig'.
14 /etc/rc.d/mountcritlocal
34 /etc/rc.d/ldconfig
54 /etc/rc.d/mountcritremote
85 /etc/rc.d/mountd
97 /etc/rc.d/mountlate

After change:

% rcorder /etc/rc.d/* | awk '/ldconfig|mount.*/ { print NR, $NF }'
14 /etc/rc.d/mountcritlocal
34 /etc/rc.d/ldconfig
54 /etc/rc.d/mountcritremote
85 /etc/rc.d/mountd
97 /etc/rc.d/mountlate

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4011
Build 4054: arc lint + arc unit

Event Timeline

ngie retitled this revision from to Fix circular dependency created after r287197 between ldconfig and mountcritremote.
ngie updated this object.
ngie edited the test plan for this revision. (Show Details)
ngie added subscribers: cem, glebius, jilles, trasz.
jilles added a reviewer: jilles.

Looks good to me.

On another note, it would be nice to check for circular dependencies during the build; this is made harder by rcorder being written in C.

This revision is now accepted and ready to land.May 29 2016, 7:16 PM