diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-10-28 13:09:50 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-10-28 13:09:50 +0000 |
commit | f7eec0361d3b2465c8cf3449082ee396b016e29b (patch) | |
tree | 3e2477ce5a721c613a6a3474cadda7d407dc3fb4 /example | |
parent | 11509ce3fc6a36b6e3c094bf8aa11820f17d0ede (diff) | |
download | android_external_fuse-f7eec0361d3b2465c8cf3449082ee396b016e29b.tar.gz android_external_fuse-f7eec0361d3b2465c8cf3449082ee396b016e29b.tar.bz2 android_external_fuse-f7eec0361d3b2465c8cf3449082ee396b016e29b.zip |
fix
Diffstat (limited to 'example')
-rw-r--r-- | example/fusexmp_fh.c | 15 |
1 files changed, 15 insertions, 0 deletions
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, |