GENERIC make buildkernel error / fails - posix_fadvise
Garrett Cooper
yanegomi at gmail.com
Fri Jan 13 03:11:55 UTC 2012
On Thu, Jan 12, 2012 at 5:52 PM, Doug Barton <dougb at freebsd.org> wrote:
>
>>> chflags -R noschg /usr/obj/usr
>>> rm -rf /usr/obj/usr
>
> It's much faster to do:
>
> /bin/rm -rf ${obj}/* 2> /dev/null || /bin/chflags -R 0 ${obj}/* &&
> /bin/rm -rf ${obj}/*
+1. And it's faster yet when you can run parallel copies of rm on
different portions of the directory tree (e.g. xargs, find [..] -exec)
as rm is O(n).
Cheers,
-Garrett
More information about the freebsd-stable
mailing list