fuse-overlayfs: change ovl_statfs to use the upper layer fd instead of its path

Signed-off-by: Jonathan Calmels <jcalmels@nvidia.com>
This commit is contained in:
Jonathan Calmels 2019-04-10 11:42:18 -07:00
parent 1b4227ce66
commit bff9fd9e22

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);