Displaying 5 results from an estimated 5 matches for "hashfil".
Did you mean:
hashfile
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...ecv_ok = receive_data(f_in,buf,fd2,fname,file->length,file->sum);
log_recv(file, &initial_stats);
patchwork diff rsync.h
--- rsync.h 2004-02-09 15:42:40.000000000 -0500
+++ rsync.h 2004-02-09 15:42:40.000000000 -0500
@@ -453,6 +453,13 @@
int num_transferred_files;
};
+struct hashfile_struct {
+ struct hashfile_struct *next;
+ struct hashfile_struct *prev;
+ char *name;
+ int fd;
+};
+
/* we need this function because of the silly way in which duplicate
entries are handled in the file lists - we can't change this
patchwork diff hashlink.c
--- hashlink.c 1969-12-31 19...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...*src >> 4;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ c = *src & 0x0f;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ }
+ *dst = 0;
+
+ asprintf(&dst,"%s/%s",link_by_hash_dir,hash);
+ return dst;
+}
+
+
+void kill_hashfile(struct hashfile_struct *hashfile)
+{
+ if (!hashfile)
+ return;
+ free(hashfile->name);
+ close(hashfile->fd);
+ free(hashfile);
+}
+
+
+void kill_hashfiles(struct hashfile_struct *hashfiles)
+{
+ struct hashfile_struct *iter, *next;
+ if ((iter = hashfiles) != NULL) {
+ do {
+ next = it...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...*src >> 4;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ c = *src & 0x0f;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ }
+ *dst = 0;
+
+ asprintf(&dst,"%s/%s",link_by_hash_dir,hash);
+ return dst;
+}
+
+
+void kill_hashfile(struct hashfile_struct *hashfile)
+{
+ if (!hashfile)
+ return;
+ free(hashfile->name);
+ close(hashfile->fd);
+ free(hashfile);
+}
+
+
+void kill_hashfiles(struct hashfile_struct *hashfiles)
+{
+ struct hashfile_struct *iter, *next;
+ if ((iter = hashfiles) != NULL) {
+ do {
+ next = it...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...*src >> 4;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ c = *src & 0x0f;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ }
+ *dst = 0;
+
+ asprintf(&dst,"%s/%s",link_by_hash_dir,hash);
+ return dst;
+}
+
+
+void kill_hashfile(struct hashfile_struct *hashfile)
+{
+ if (!hashfile)
+ return;
+ free(hashfile->name);
+ close(hashfile->fd);
+ free(hashfile);
+}
+
+
+void kill_hashfiles(struct hashfile_struct *hashfiles)
+{
+ struct hashfile_struct *iter, *next;
+ if ((iter = hashfiles) != NULL) {
+ do {
+ next = it...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...*src >> 4;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ c = *src & 0x0f;
+ *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0');
+ }
+ *dst = 0;
+
+ asprintf(&dst,"%s/%s",link_by_hash_dir,hash);
+ return dst;
+}
+
+
+void kill_hashfile(struct hashfile_struct *hashfile)
+{
+ if (!hashfile)
+ return;
+ free(hashfile->name);
+ close(hashfile->fd);
+ free(hashfile);
+}
+
+
+void kill_hashfiles(struct hashfile_struct *hashfiles)
+{
+ struct hashfile_struct *iter, *next;
+ if ((iter = hashfiles) != NULL) {
+ do {
+ next = it...