Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
5d64bc5d
Commit
5d64bc5d
authored
Mar 16, 2011
by
Timo Teräs
Browse files
db: fix cache tmpfs detection
comment out the code that was out for testing. duh.
parent
415e230a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/database.c
View file @
5d64bc5d
...
...
@@ -1202,7 +1202,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
/* figure out where to have the cache */
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
;
db
->
cache_dir
=
apk_linked_cache_dir
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment