search for: clear_file

Displaying 2 results from an estimated 2 matches for "clear_file".

2005 May 27
2
Possible bug not deleting files
I am using rsnapshot <http://www.rsnapshot.org/> to make snapshots of my filesystem. rsnapshot uses rsync to do all the heavy lifting. I was recently browsing my snapshots and discovered that none of the excluded files or files deleted in the source are getting deleted from the snapshot. rsnapshot calls rsync like this: /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
2004 Feb 06
4
memory reduction
...ind(struct file_list *flist, return -1; } - /* - * Free up any resources a file_struct has allocated, and optionally free - * it up as well. + * Free up any resources a file_struct has allocated + * and clear the file. */ -void free_file(struct file_struct *file, int free_the_struct) +void clear_file(int i, struct file_list *flist) { - if (free_the_struct) - free(file); - else - memset(file, 0, min_file_struct_len); + if (flist->hlink_pool && flist->files[i]->link_u.idev) + pool_free(flist->hlink_pool, 0, flist->files[i]->link_u.idev); + memset(flist->files[i],...