aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-04-09 12:06:01 +0000
committerMartin Willi <martin@strongswan.org>2009-04-09 12:06:01 +0000
commitd848b951fcfdddddfaa7990de5a4d44e87f75a59 (patch)
tree36e519dd1d1f660ef35a57cd644c49053ab33574 /src/dumm
parent79f81838bca0cdc0af71d741c66b05a43c78fdc5 (diff)
downloadstrongswan-d848b951fcfdddddfaa7990de5a4d44e87f75a59.tar.bz2
strongswan-d848b951fcfdddddfaa7990de5a4d44e87f75a59.tar.xz
simplified statfs
Diffstat (limited to 'src/dumm')
-rw-r--r--src/dumm/cowfs.c8
1 files changed, 1 insertions, 7 deletions
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;