1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

Skip nocow files to speed up processing

If you have a lot of or a few big nocow files (like vm images) which
contain a lot of potential deduplication candidates, bees becomes
incredibly slow running through a lot "invalid operation" exceptions.

Let's just skip over such files to get more bang for the buck. I did no
regression testing as this patch seems trivial (and I cannot imagine any
pitfalls either). The process progresses much faster for me now.
Dieser Commit ist enthalten in:
Kai Krakow
2017-09-12 02:09:22 +02:00
Ursprung 703bb7c1a3
Commit a5e2bdff47
3 geänderte Dateien mit 22 neuen und 0 gelöschten Zeilen
+8
Datei anzeigen
@@ -488,6 +488,14 @@ namespace crucible {
lstat(filename);
}
int
ioctl_iflags_get(int fd)
{
int attr = 0;
DIE_IF_MINUS_ONE(ioctl(fd, FS_IOC_GETFLAGS, &attr));
return attr;
}
string
readlink_or_die(const string &path)
{