Displaying 1 result from an estimated 1 matches for "move_dir".
Did you mean:
move_diff
2006 Sep 28
1
ramfs to tmpfs
...{
struct le *l;
for (l = hl; l && inode != l->inode; l = l->next);
/* found, return path */
if (l) return l->path;
/* new target */
l = malloc(sizeof *l + strlen(s) + 1);
l->next = hl;
l->inode = inode;
strcpy(l->path, s);
hl = l;
return NULL;
}
static void move_dir(const char *s);
/* move a directory entry. recurse into subdirectories, copy regular files,
* and recreate special files.
* preserve owner, access and creation times and permissions, whenever
* possible */
static void move_ent(const char *p, const char *n)
{
int pl = strlen(p), nl = strlen(n);...