Lines Matching defs:hash
19 /* Files are in <rootdir>/ha/sh/<hash>-<guid>
20 They may be hard linked to hashes/<hash>
23 static const char *sis_get_dir(const char *rootdir, const char *hash)
25 if (strlen(hash) < 4 || strchr(hash, '/') != NULL)
26 i_fatal("Invalid hash in filename: %s", hash);
28 hash[0], hash[1], hash[2], hash[3]);
40 the same or if this is a hash collision */
134 const char *p, *hash, *hashdir, *path, *hashes_dir, *hashes_path;
139 /* fname should be in <hash>-<guid> format */
143 hash = t_strdup_until(fname, p);
144 hashdir = sis_get_dir(rootdir, hash);
148 hashes_path = t_strconcat(hashes_dir, "/", hash, NULL);
150 /* first file with this hash. we're done */
268 const char *rootdir, *path, *hash;
284 hash = argv[2];
285 hash_len = strlen(hash);
287 path = sis_get_dir(rootdir, hash);
304 if (strncmp(d->d_name, hash, hash_len) == 0) {
318 cmd_sis_find, "sis find", "<root dir> <hash>"