Commit 0be0905c authored by Mike Hibler's avatar Mike Hibler

FreeBSD vnode optimization: don't fsck the FS if we did not change anything.

parent 16edec33
...@@ -1906,7 +1906,8 @@ sub vnodePreConfig($$$$$){ ...@@ -1906,7 +1906,8 @@ sub vnodePreConfig($$$$$){
$vninfo->{'elabinelab'} = 1; $vninfo->{'elabinelab'} = 1;
} }
print STDERR "vnodePreConfig: $vnode_id root already localized\n"; print STDERR "vnodePreConfig: $vnode_id root already localized\n";
goto done; mysystem("umount $dev");
goto done2;
} }
# needs to be customized, remount RW # needs to be customized, remount RW
...@@ -2163,6 +2164,7 @@ sub vnodePreConfig($$$$$){ ...@@ -2163,6 +2164,7 @@ sub vnodePreConfig($$$$$){
mysystem2("$FSCKUFS -yf $dev"); mysystem2("$FSCKUFS -yf $dev");
} }
done2:
# XXX let vnodesetup exit early # XXX let vnodesetup exit early
if ($vsrelease eq "early" && $retval == 0) { if ($vsrelease eq "early" && $retval == 0) {
TBDebugTimeStamp("vnodePreConfig: touching $VMS/$vnode_id/running"); TBDebugTimeStamp("vnodePreConfig: touching $VMS/$vnode_id/running");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment