Commit 5d64bc5d authored by Timo Teräs's avatar Timo Teräs

db: fix cache tmpfs detection

comment out the code that was out for testing. duh.
parent 415e230a
...@@ -1202,7 +1202,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts) ...@@ -1202,7 +1202,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
/* figure out where to have the cache */ /* figure out where to have the cache */
fd = openat(db->root_fd, apk_linked_cache_dir, O_RDONLY | O_CLOEXEC); fd = openat(db->root_fd, apk_linked_cache_dir, O_RDONLY | O_CLOEXEC);
if (fd >= 0 && fstatfs(fd, &stfs) == 0 /*&& stfs.f_type != 0x01021994*/ /* TMPFS_MAGIC */) { if (fd >= 0 && fstatfs(fd, &stfs) == 0 && stfs.f_type != 0x01021994 /* TMPFS_MAGIC */) {
struct statvfs stvfs; struct statvfs stvfs;
db->cache_dir = apk_linked_cache_dir; db->cache_dir = apk_linked_cache_dir;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment