| 378 | } |
| 379 | |
| 380 | static int64 xattr_lookup_hash(const item_list *xalp) |
| 381 | { |
| 382 | const rsync_xa *rxas = xalp->items; |
| 383 | size_t i; |
| 384 | int64 key = hashlittle2(&xalp->count, sizeof xalp->count); |
| 385 | |
| 386 | for (i = 0; i < xalp->count; i++) { |
| 387 | key += hashlittle2(rxas[i].name, rxas[i].name_len); |
| 388 | if (rxas[i].datum_len > MAX_FULL_DATUM) |
| 389 | key += hashlittle2(rxas[i].datum, xattr_sum_len); |
| 390 | else |
| 391 | key += hashlittle2(rxas[i].datum, rxas[i].datum_len); |
| 392 | } |
| 393 | |
| 394 | return key; |
| 395 | } |
| 396 | |
| 397 | static int find_matching_xattr(const item_list *xalp) |
| 398 | { |
no test coverage detected