mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-10 07:44:54 -04:00
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:
parent
1b4227ce66
commit
bff9fd9e22
2
main.c
2
main.c
@ -3441,7 +3441,7 @@ ovl_statfs (fuse_req_t req, fuse_ino_t ino)
|
|||||||
if (ovl_debug (req))
|
if (ovl_debug (req))
|
||||||
fprintf (stderr, "ovl_statfs(ino=%" PRIu64 "s)\n", ino);
|
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)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
fuse_reply_err (req, errno);
|
fuse_reply_err (req, errno);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user