Displaying 1 result from an estimated 1 matches for "copy_dir_proc".
2008 Sep 01
0
Feature request: preallocation of directories
...st char *dest_dir = "/mnt";
const char *src_dir = "/";
int blocksize = 4096;
int dest_len = 4;
int silent = 0;
dev_t xdev;
static void usage(void)
{
fprintf(stderr,
"Usage: %s [-RVf] [-+=AacDdijsSu] [-v version] files...\n",
program_name);
exit(1);
}
static int copy_dir_proc(const char *, struct dirent *, void *);
static int copy_dir(const char * name)
{
unsigned long flags;
struct stat st;
char *newname;
off_t size;
char fill[250];
int i, l, fd, num;
int recurse;
if (LSTAT (name, &st) == -1) {
if (!silent)
com_err (program_name, errno,
&qu...