From f7eec0361d3b2465c8cf3449082ee396b016e29b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 28 Oct 2005 13:09:50 +0000 Subject: fix --- example/fusexmp_fh.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'example/fusexmp_fh.c') diff --git a/example/fusexmp_fh.c b/example/fusexmp_fh.c index 2f4b187..764ba91 100644 --- a/example/fusexmp_fh.c +++ b/example/fusexmp_fh.c @@ -33,6 +33,20 @@ static int xmp_getattr(const char *path, struct stat *stbuf) return 0; } +static int xmp_fgetattr(const char *path, struct stat *stbuf, + struct fuse_file_info *fi) +{ + int res; + + (void) path; + + res = fstat(fi->fh, stbuf); + if(res == -1) + return -errno; + + return 0; +} + static int xmp_access(const char *path, int mask) { int res; @@ -353,6 +367,7 @@ static int xmp_removexattr(const char *path, const char *name) static struct fuse_operations xmp_oper = { .getattr = xmp_getattr, + .fgetattr = xmp_fgetattr, .access = xmp_access, .readlink = xmp_readlink, .opendir = xmp_opendir, -- cgit v1.2.3