Merge pull request #65 from 3XX0/statfs-upper-fd

fuse-overlayfs: change ovl_statfs to use the upper layer fd instead o…
This commit is contained in:
Giuseppe Scrivano 2019-04-12 10:15:53 +02:00 committed by GitHub
commit b1c612984e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
main.c
View File

@ -3441,7 +3441,7 @@ ovl_statfs (fuse_req_t req, fuse_ino_t ino)
if (ovl_debug (req))
fprintf (stderr, "ovl_statfs(ino=%" PRIu64 "s)\n", ino);
ret = statvfs (lo->upperdir, &sfs);
ret = fstatvfs (get_upper_layer (lo)->fd, &sfs);
if (ret < 0)
{
fuse_reply_err (req, errno);