VERY frustrated with FreeBSD/UFS stability - please help or
comment...
Dag-Erling Smørgrav
des at des.no
Tue May 22 12:42:18 UTC 2007
Bill Vermillion <bv at wjv.com> writes:
> And one other way to 'copy' files/directories >>IF<< they are
> on the same file system, is to use cpio with the -pdlm option.
>
> All that does is build another directory with all files in the
> first liked statically to the second. Then you just 'rm' the files
> in the first. Since there is NO COPYING - this is quick, won't
> scatter files around as they remain where they were originally but
> with just a new directory pointing to them.
This is exactly what the OP already does (cp -rl) but it is nowhere near
as fast as you claim when you have thousands of directories and millions
of files.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-fs
mailing list