dcopy
PURPOSE
Copies file systems for the best access time.
SYNOPSIS
dcopy [ -d -v -s[cyl:skip] ] [ -a num ] [ -f fsize ] [ -f fsize:isize ]
oldfs newfs
DESCRIPTION
Warning: oldfs and newfs must not refer to the same
minidisk. Doing so will destroy the old file system.
The dcopy command copies an existing file system oldfs to
a new file system newfs, appropriately sized to hold the
reorganized results. For best results, oldfs should be
the raw device and newfs should be the block device. If
oldfs or newfs is a file system name, dcopy uses the cor-
responding block device given in /etc/filesystems. You
should run dcopy on unmounted file systems (in the case
of the root file system, copy to a new minidisk).
If you do not specify any flags, dcopy copies files from
oldfs, compressing directories by removing vacant entries
and spacing consecutive blocks in a file by the optimal
rotational gap.
The dcopy command makes newfs identical to oldfs and pre-
serves the pack and volume labels. Thus, to compress a
file system without moving it, use the dcopy command to
copy the file to another file system and the dd command
to copy the file back.
The dcopy command catches INTERRUPT and QUIT signals and
reports on its progress. To end dcopy, send a Quit
signal (Ctrl-V) and dcopy no longer catches INTERRUPT or
QUIT. dcopy also attempts to modify its command line
arguments so that its progress can be monitored with the
ps command.
FLAGS
-anum Places files not accessed in the speci-
fied number of days after the free
blocks of the destination file system.
The default value of num is 7. If you
do not specify num, no files are moved.
-d Leaves the order of directory entries as
is. If you do not specify this flag,
dcopy moves subdirectories to the begin-
ning of directories.
-ffsize[:isize] Specifies the file system and i-node
list sizes (in blocks). If not speci-
fied, the value from oldfs is used.
-scyl:skip Supplies device information for creating
the best organization of blocks in a
file, where cyl is the number of block
per cylinder and skip is the number of
blocks to skip.
-v Reports how many files were processed
and how big the source and destination
free lists are.
RELATED INFORMATION
The following commands: "fsck, dfsck," "mkfs," and
"ps."