From d848b951fcfdddddfaa7990de5a4d44e87f75a59 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 9 Apr 2009 12:06:01 +0000 Subject: simplified statfs --- src/dumm/cowfs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/dumm') diff --git a/src/dumm/cowfs.c b/src/dumm/cowfs.c index 12318c889..69f008976 100644 --- a/src/dumm/cowfs.c +++ b/src/dumm/cowfs.c @@ -708,15 +708,9 @@ static int cowfs_write(const char *path, const char *buf, size_t size, */ static int cowfs_statfs(const char *path, struct statvfs *stbuf) { - private_cowfs_t *this = get_this(); int fd; - fd = this->host_fd; - if (this->over_fd > 0) - { - fd = this->over_fd; - } - + fd = get_rd(path); if (fstatvfs(fd, stbuf) < 0) { return -errno; -- cgit v1.2.3