chiark / gitweb /
readahead: ignore if files are removed during collection or before replay
[elogind.git] / src / readahead-collect.c
index a9f544dd3ac4a29e30df58b139642a3ef88daa9b..ac46c7b3ea2afca7e49fb34c71e64ba93c674b97 100644 (file)
@@ -92,6 +92,10 @@ static int pack_file(FILE *pack, const char *fn, bool on_btrfs) {
         assert(fn);
 
         if ((fd = open(fn, O_RDONLY|O_CLOEXEC|O_NOATIME|O_NOCTTY|O_NOFOLLOW)) < 0) {
+
+                if (errno == ENOENT)
+                        return 0;
+
                 log_warning("open(%s) failed: %m", fn);
                 r = -errno;
                 goto finish;